-
Notifications
You must be signed in to change notification settings - Fork 38.8k
doc: clarify processing of mempool-msgs when NODE_BLOOM #27559
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
Conversation
Under which circumstances we process received 'mempool' P2P messages caused confusion in bitcoin#27426. Rather than bikeshedding the formulation of the IF-statement, this adds a comment clarifing when we process the message. Also, correcting the comment of `m_send_mempool`. Co-authored-by: willcl-ark <[email protected]>
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
|
ACK 4581a68 |
|
ACK 4581a68 |
|
cc also @jnewbery @mzumsande @sdaftuar |
glozow
left a comment
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.
ACK 4581a68
|
Post-merge ACK 4581a68 |
|
ACK 4581a68 |
| /** Whether the peer has requested us to send our complete mempool. Only | ||
| * permitted if the peer has NetPermissionFlags::Mempool. See BIP35. */ | ||
| * permitted if the peer has NetPermissionFlags::Mempool or we advertise | ||
| * NODE_BLOOM. See BIP35. */ |
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.
I think it makes sense to also document this in src/protocol.h, which generally refers to the p2p version and the BIP number. I read BIP 35, 37, and 111, but I couldn't find a mention that the message type is guarded by NODE_BLOOM. So maybe this can also be mentioned in src/protocol.h?
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.
@0xB10C did you want to follow up here?
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.
Under which circumstances we process received 'mempool' P2P messages caused confusion in #27426. Rather than bike-shedding the formulation of the IF-statement, this adds a comment clarifying when we process the message. Also, correcting the
m_send_mempooldescription.