Skip to content

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
}

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

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