-
Notifications
You must be signed in to change notification settings - Fork 834
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
Add mechanism to retrieve missing blocks #4175
Add mechanism to retrieve missing blocks #4175
Conversation
…Manager to get stuck on pending blocks Signed-off-by: Gabriel Trintinalia <[email protected]>
...eum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/state/PendingBlocksManager.java
Outdated
Show resolved
Hide resolved
ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/BlockPropagationManager.java
Outdated
Show resolved
Hide resolved
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.
Good test coverage 👍
Signed-off-by: Gabriel Trintinalia <[email protected]>
…k is saved for future Signed-off-by: Gabriel Trintinalia <[email protected]>
It is worth to know that the |
What happens in case more than one parent block is missing? |
the fullsync only starts when we are too far from the head. so indeed it can be strange that the fullsync does not trigger after a certain time. but at the same time I also prefer this fix because we don't have to wait to be too far to fix the problem |
Double checked with @matkt, and full sync and |
So if block +3 arrives and we do not have +1 and +2:
|
* Add mechanism to retrieve missing blocks that caused BlockPropagationManager to get stuck on pending blocks * Remove threshold and request the lowest block parent everytime a block is saved for future Signed-off-by: Gabriel Trintinalia <[email protected]> Co-authored-by: Gabriel Trintinalia <[email protected]> Co-authored-by: garyschulte <[email protected]> Co-authored-by: Sally MacFarlane <[email protected]>
Signed-off-by: Gabriel Trintinalia [email protected]
PR description
Add mechanism to retrieve missing blocks when a pending block is saved
Fixed Issue(s)
#3955
Documentation
doc-change-required
label to this PR ifupdates are required.
Changelog