-
Notifications
You must be signed in to change notification settings - Fork 303
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
Remove TTD Bellatrix merge configuration option #8951
base: master
Are you sure you want to change the base?
Conversation
It's built on top of #8943 which should be merged before Some notes:
|
} | ||
STATUS_LOG.fatalError(errorDescription, rootCause); | ||
System.exit(FATAL_EXIT_CODE); |
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.
Are we sure we always want to do System.exit()
?
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.
Just for information: here is the original PR where exit() appeared: #2626
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.
LGTM with some minor questions
createGenesisGenerator() | ||
.network(NETWORK_NAME) | ||
.withAltairEpoch(UInt64.ZERO) | ||
.withBellatrixEpoch(UInt64.ONE) |
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.
Why Bellatrix at epoch 1? So essentially the EL remains waiting at genesis block (which is known and is DEFAULT_EL_GENESIS_HASH
until CL reaches epoch 1 and then it merges using that genesis block?
@@ -13,6 +13,7 @@ | |||
"londonBlock": 0, | |||
"parisBlock": 0, | |||
"terminalTotalDifficulty": 0, | |||
"terminalTotalDifficultyPassed": true, |
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.
This is needed to deprecate TTD I guess
terminalBlock = | ||
new PowBlock( | ||
terminalBlockHash, TERMINAL_BLOCK_PARENT_HASH, terminalTotalDifficulty, transitionTime); | ||
terminalBlockParent = new PowBlock(TERMINAL_BLOCK_PARENT_HASH, Bytes32.ZERO, UInt64.ZERO); |
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.
we can do some additional cleanup here in the stub, see terminalBlockHashInTTDMode
final boolean isMergeTransitionComplete = | ||
isMergeTransitionComplete(recentChainData.getChainHead()); | ||
if (!isMergeTransitionComplete | ||
&& spec.isMilestoneSupported(SpecMilestone.BELLATRIX) |
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.
i think spec.isMilestoneSupported(SpecMilestone.BELLATRIX)
is redundant since we already check bellatrix spec config at line 75
final IntCollection actual = provider.getValidatorIndices().getImmediately(); | ||
assertThat(actual).containsExactlyInAnyOrderElementsOf(IntArrayList.of(1, 20, 300)); |
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.
why this change? (the same below)
PR Description
WIP
Fixed Issue(s)
Documentation
doc-change-required
label to this PR if updates are required.Changelog