-
Notifications
You must be signed in to change notification settings - Fork 461
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
Merge/transition fixes #4145
Merge/transition fixes #4145
Conversation
# Conflicts: # src/Nethermind/Nethermind.Blockchain/BlockTree.cs # src/Nethermind/Nethermind.Runner/Ethereum/Steps/StartRpc.cs # src/Nethermind/Nethermind.Runner/JsonRpc/Startup.cs
bool tdImproved = header.TotalDifficulty > (BestSuggestedBody?.TotalDifficulty ?? 0); | ||
bool preMergeImprovementRequirementSatisfied = tdImproved && !reachedTtd; | ||
bool terminalBlockRequirementSatisfied = tdImproved && reachedTtd && IsTerminalBlock(header) && !HeadIsPoS; | ||
bool postMergeImprovementRequirementSatisfied = reachedTtd && (BestSuggestedBody?.Number ?? 0) <= header.Number && isPostMerge; |
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.
(BestSuggestedBody?.Number ?? 0) <= header.Number
in postMergeImprovementRequirementSatisfied
-> shouldn't that be controlled by FCU?
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.
Let's discuss
Closing in favor of #4224 |
Fixes in suggest blocks from discovery during the transition