Skip to content

Conversation

@0xB10C
Copy link
Contributor

@0xB10C 0xB10C commented May 2, 2023

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_mempool description.

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]>
@DrahtBot
Copy link
Contributor

DrahtBot commented May 2, 2023

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK dergoegge, willcl-ark, glozow

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@DrahtBot DrahtBot added the Docs label May 2, 2023
@dergoegge
Copy link
Member

ACK 4581a68

@willcl-ark
Copy link
Member

willcl-ark commented May 3, 2023

ACK 4581a68

@fanquake
Copy link
Member

fanquake commented May 3, 2023

cc also @jnewbery @mzumsande @sdaftuar

Copy link
Member

@glozow glozow left a comment

Choose a reason for hiding this comment

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

ACK 4581a68

@glozow glozow merged commit 8f5da89 into bitcoin:master May 3, 2023
@mzumsande
Copy link
Contributor

Post-merge ACK 4581a68

@0xB10C 0xB10C deleted the 2023-05-clarify-mempool-bloom branch May 3, 2023 12:26
@jnewbery
Copy link
Contributor

jnewbery commented May 3, 2023

ACK 4581a68

sidhujag pushed a commit to syscoin/syscoin that referenced this pull request May 4, 2023
/** 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. */
Copy link
Member

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?

Copy link
Member

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?

Copy link
Member

Choose a reason for hiding this comment

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

@bitcoin bitcoin locked and limited conversation to collaborators May 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants