Skip to content
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

Notes on Block-In-Flight Handling #16172

Closed
TheBlueMatt opened this issue Jun 8, 2019 · 2 comments
Closed

Notes on Block-In-Flight Handling #16172

TheBlueMatt opened this issue Jun 8, 2019 · 2 comments

Comments

@TheBlueMatt
Copy link
Contributor

In compact block opportunistic reconstruction we have a comment above the MarkBlockAsReceived call:

                // Clear download state for this block, which is in
                // process from some other peer.  We do this after calling
                // ProcessNewBlock so that a malleated cmpctblock announcement
                // can't be used to interfere with block relay.

That's great and all, but we don't have anything similar in ::BLOCK handling. Thus, if you have a compact block blocktxn request in-flight from one peer, another peer can send you a malleated block as a regular block message causing the in-flight state to be cleared. That peer will get banned, so its a one-time block propagation slowdown (and shouldn't even be all that much of a slowdown), but worth noting. Writing it up primarily cause it should be considered in some eventual in-flight-blocks refactoring in conjunction with a #10984 rebase.

@fanquake
Copy link
Member

cc @instagibbs

@instagibbs
Copy link
Member

As of #27626 this case should be covered, you can close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants