-
Notifications
You must be signed in to change notification settings - Fork 261
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
clean up exchange configuration handling #4126
Conversation
Per spec, we should not be sending our detected terminal block to EL - the EL configuration exchange should only look at values from configuration and report mismatches. * note TODO about usage of terminal block hash configuration
beacon_chain/eth1/eth1_monitor.nim
Outdated
@@ -561,67 +559,46 @@ proc exchangeTransitionConfiguration*(p: Eth1Monitor): Future[EtcStatus] {.async | |||
if dataProvider.isNil: | |||
return EtcStatus.exchangeError | |||
|
|||
# https://github.com/ethereum/execution-apis/blob/main/src/engine/specification.md#engine_exchangetransitionconfigurationv1 |
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.
@@ -38,8 +38,7 @@ type | |||
|
|||
# Transition | |||
TERMINAL_TOTAL_DIFFICULTY*: UInt256 | |||
TERMINAL_BLOCK_HASH*: BlockHash | |||
# TODO TERMINAL_BLOCK_HASH_ACTIVATION_EPOCH*: Epoch | |||
TERMINAL_BLOCK_HASH*: BlockHash # TODO use in eht1monitor |
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.
TERMINAL_BLOCK_HASH*: BlockHash # TODO use in eht1monitor | |
TERMINAL_BLOCK_HASH*: BlockHash # TODO use in eth1monitor |
p.terminalBlockNumber.get | ||
else: | ||
(static default Quantity)) | ||
terminalBlockHash: p.depositsChain.cfg.TERMINAL_BLOCK_HASH, |
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.
The old code was not fully wrong here I think. We still need to consider the command-line override that the user may supply.
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 consider the command line here:
nimbus-eth2/beacon_chain/nimbus_beacon_node.nim
Line 1830 in 667c3c9
metadata.cfg.TERMINAL_TOTAL_DIFFICULTY = |
Per spec, we should not be sending our detected terminal block to EL - the EL configuration exchange should only look at values from configuration and report mismatches.