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
confirm pivot block - removed disconnect based on chain height estimate #6889
Draft
macfarla
wants to merge
23
commits into
hyperledger:main
Choose a base branch
from
macfarla:chain-height-estimate-tolerance
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 19 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
e64112f
gst
macfarla e44fcc2
update chain height estimate of that peer to reflect reality
macfarla da0454a
log details on comparator update
macfarla 9a374ab
use default comparator not chain height
macfarla 77b9ea7
extra logging re best peer
macfarla d01a423
allow 1 trailing peer not zero
macfarla 500843d
removed check for chain height prior to confirming pivot block
macfarla c825c47
remove a log line that is repeated unnecessarily
macfarla 5ebcdac
cleanup
macfarla 8f5ac92
Merge branch 'main' of github.com:hyperledger/besu into chain-height-…
macfarla 7db08e9
removed unused method
macfarla ea60f72
allow 5 trailing peers not 0
macfarla d3d15f6
add chain height estimate to ethPeer.toString()
macfarla 75da10f
Merge branch 'main' of github.com:hyperledger/besu into chain-height-…
macfarla efe7a64
logging order
macfarla 755d41b
revert change in comparator
macfarla 2ea6a32
update test
macfarla a3dceb4
merge
macfarla 20dbba0
Merge branch 'main' of github.com:hyperledger/besu into chain-height-…
macfarla 2d81237
Merge branch 'main' into chain-height-estimate-tolerance
gfukushima 8352324
use Long.MAX_VALUE to skip the trailingPeer validation, likely incorr…
gfukushima 47fae0a
Merge branch 'main' of github.com:hyperledger/besu into chain-height-…
macfarla 94f3a3e
Merge branch 'chain-height-estimate-tolerance' of github.com:macfarla…
macfarla File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
My suggestion is, we should probably eliminate this TrailingPeer validation (since there's no garantee that peers are going to have their chain height estimate up-to-date) but for test purpose we can easily skip the trailing validation by assigning Long.MAX_VALUE to the second param of the TrailingPeerRequirements constructor