Skip to content

Fix filtering of the lock votes for SPV nodes. - #2468

Merged
codablock merged 4 commits into
dashpay:developfrom
gladcow:bloomfix
Nov 23, 2018
Merged

Fix filtering of the lock votes for SPV nodes.#2468
codablock merged 4 commits into
dashpay:developfrom
gladcow:bloomfix

Conversation

@gladcow

@gladcow gladcow commented Nov 20, 2018

Copy link
Copy Markdown

Fix for functionality from #2184.

This fix allows to filter lock vote INV messages by the related transaction hash in the cases when we have failed to find related transaction itself. Node filter is not updated for transaction data (outputs, prevouts, etc.) in this case, but I think it doesn't matter, because it should be updated during other transaction related messages relay (lock requests or tx INV, for example).

Also, separate filtering is added for lock requests, because lock requests relay differs from simple tx relay and bloom filters were not really used for lock requests.

@UdjinM6 UdjinM6 added this to the 13.0 milestone Nov 20, 2018
UdjinM6
UdjinM6 previously approved these changes Nov 20, 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

@gladcow gladcow changed the title Fix filtering of the lock votes for SPV nodes. [WIP] Fix filtering of the lock votes for SPV nodes. Nov 20, 2018
@gladcow

gladcow commented Nov 20, 2018

Copy link
Copy Markdown
Author

Don't merge it, please, looks like there is one more issue with this functionality.

@gladcow gladcow changed the title [WIP] Fix filtering of the lock votes for SPV nodes. Fix filtering of the lock votes for SPV nodes. Nov 20, 2018
@gladcow

gladcow commented Nov 20, 2018

Copy link
Copy Markdown
Author

Fixed, re-review, please.

@PastaPastaPasta PastaPastaPasta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

if statements should either have their bodies enclosed by brackets or on the same line

Comment thread src/net.cpp Outdated
Comment thread src/net.cpp Outdated
Comment thread src/net.cpp Outdated
Comment thread src/net.cpp Outdated
Comment thread src/net.cpp Outdated
Comment thread src/net.cpp Outdated
Co-Authored-By: gladcow <sergey@dash.org>

@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

@codablock
codablock merged commit a57e9de into dashpay:develop Nov 23, 2018
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Jun 29, 2020
* check request is not empty to use it for filtering

* Filter vote INVs by tx hash

* fix lock requests filtering

* Apply suggestions from code review

Co-Authored-By: gladcow <sergey@dash.org>
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.

4 participants