Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend Bloom Filter support to InstantSend related messages #2184

Merged
merged 2 commits into from
Jul 20, 2018

Conversation

gladcow
Copy link

@gladcow gladcow commented Jul 16, 2018

Implementation for issue #1677, add filtering during relay for lock votes

Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general looks good but I have a few coding style remarks, see inline comments.

src/net.cpp Outdated
@@ -2640,6 +2640,23 @@ void CConnman::RelayInv(CInv &inv, const int minProtoVersion) {
pnode->PushInventory(inv);
}

void CConnman::RelayInvFiltered(CInv &inv,
const CTransaction& relatedTx,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code style: no need for multiple lines here imo

src/net.cpp Outdated
@@ -2640,6 +2640,23 @@ void CConnman::RelayInv(CInv &inv, const int minProtoVersion) {
pnode->PushInventory(inv);
}

void CConnman::RelayInvFiltered(CInv &inv,
const CTransaction& relatedTx,
const int minProtoVersion) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code style: { should be on new lines for functions

src/net.cpp Outdated
{
LOCK(pnode->cs_filter); // TODO: do we need it?
if(pnode->pfilter &&
!pnode->pfilter->IsRelevantAndUpdate(relatedTx))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code style: no need for multiple lines here imo

@UdjinM6 UdjinM6 added this to the 12.4 milestone Jul 16, 2018
Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

Copy link

@codablock codablock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@UdjinM6 UdjinM6 merged commit ace9808 into dashpay:develop Jul 20, 2018
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Apr 25, 2019
…2184)

* use bloom filters for IX lock votes

* code style fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants