Skip to content

Extend Bloom Filter support to InstantSend related messages - #2184

Merged
UdjinM6 merged 2 commits into
dashpay:developfrom
gladcow:ixbloom
Jul 20, 2018
Merged

Extend Bloom Filter support to InstantSend related messages#2184
UdjinM6 merged 2 commits into
dashpay:developfrom
gladcow:ixbloom

Conversation

@gladcow

@gladcow gladcow commented Jul 16, 2018

Copy link
Copy Markdown

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

@UdjinM6 UdjinM6 left a comment

Copy link
Copy Markdown

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.

Comment thread src/net.cpp Outdated
}

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

Copy link
Copy Markdown

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

Comment thread src/net.cpp Outdated

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

Copy link
Copy Markdown

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

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

Copy link
Copy Markdown

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

@UdjinM6 UdjinM6 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

utACK

@codablock codablock left a comment

Copy link
Copy Markdown

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