-
Notifications
You must be signed in to change notification settings - Fork 837
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 <gabriel.trintinalia@consensys.net>
...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 <gabriel.trintinalia@consensys.net>
…k is saved for future Signed-off-by: Gabriel Trintinalia <gabriel.trintinalia@consensys.net>
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 <gabriel.trintinalia@consensys.net> Co-authored-by: Gabriel Trintinalia <gabriel.trintinalia@consensys.net> Co-authored-by: garyschulte <garyschulte@gmail.com> Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
Signed-off-by: Gabriel Trintinalia gabriel.trintinalia@consensys.net
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