-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
There was a problem hiding this 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, |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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)) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
…2184) * use bloom filters for IX lock votes * code style fixes
Implementation for issue #1677, add filtering during relay for lock votes