mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-02 09:46:26 +00:00
stop calling exchangeTransitionConfiguration (#5889)
This commit is contained in:
parent
384d40fc0b
commit
52c538fb3c
@ -1275,26 +1275,6 @@ proc exchangeConfigWithSingleEL(m: ELManager, connection: ELConnection) {.async.
|
|||||||
|
|
||||||
connection.etcStatus = EtcStatus.match
|
connection.etcStatus = EtcStatus.match
|
||||||
|
|
||||||
# https://github.com/ethereum/execution-apis/blob/c4089414bbbe975bbc4bf1ccf0a3d31f76feb3e1/src/engine/cancun.md#deprecate-engine_exchangetransitionconfigurationv1
|
|
||||||
# Consensus layer clients MUST NOT call this method.
|
|
||||||
if m.eth1Chain.cfg.DENEB_FORK_EPOCH != FAR_FUTURE_EPOCH:
|
|
||||||
return
|
|
||||||
|
|
||||||
# https://github.com/ethereum/execution-apis/blob/v1.0.0-beta.3/src/engine/paris.md#engine_exchangetransitionconfigurationv1
|
|
||||||
let
|
|
||||||
ourConf = TransitionConfigurationV1(
|
|
||||||
terminalTotalDifficulty: m.eth1Chain.cfg.TERMINAL_TOTAL_DIFFICULTY,
|
|
||||||
terminalBlockHash: m.eth1Chain.cfg.TERMINAL_BLOCK_HASH,
|
|
||||||
terminalBlockNumber: Quantity 0)
|
|
||||||
try:
|
|
||||||
discard connection.trackedRequestWithTimeout(
|
|
||||||
"exchangeTransitionConfiguration",
|
|
||||||
rpcClient.engine_exchangeTransitionConfigurationV1(ourConf),
|
|
||||||
timeout = 1.seconds)
|
|
||||||
except CatchableError as err:
|
|
||||||
warn "Failed to exchange transition configuration",
|
|
||||||
url = connection.engineUrl, err = err.msg
|
|
||||||
|
|
||||||
proc exchangeTransitionConfiguration*(m: ELManager) {.async.} =
|
proc exchangeTransitionConfiguration*(m: ELManager) {.async.} =
|
||||||
if m.elConnections.len == 0:
|
if m.elConnections.len == 0:
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user