mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-22 12:30:08 +00:00
port nextExchangeTransitionCfg
to LC (#4130)
Port changes to `nextExchangeTransitionConfiguration` from BN to LC: - 60 seconds delay before initial exchange - 45 seconds interval between followup exchanges - Only exchange post Bellatrix
This commit is contained in:
parent
5677816df3
commit
31a777af74
@ -202,14 +202,16 @@ programMain:
|
||||
|
||||
blocksGossipState = targetGossipState
|
||||
|
||||
var nextExchangeTransitionConfTime: Moment
|
||||
var nextExchangeTransitionConfTime = Moment.now + chronos.seconds(60)
|
||||
proc onSecond(time: Moment) =
|
||||
let wallSlot = getBeaconTime().slotOrZero()
|
||||
|
||||
# engine_exchangeTransitionConfigurationV1
|
||||
if time > nextExchangeTransitionConfTime and eth1Monitor != nil:
|
||||
nextExchangeTransitionConfTime = time + chronos.minutes(1)
|
||||
traceAsyncErrors eth1Monitor.exchangeTransitionConfiguration()
|
||||
nextExchangeTransitionConfTime = time + chronos.seconds(45)
|
||||
if wallSlot.epoch >= cfg.BELLATRIX_FORK_EPOCH:
|
||||
traceAsyncErrors eth1Monitor.exchangeTransitionConfiguration()
|
||||
|
||||
let wallSlot = getBeaconTime().slotOrZero()
|
||||
if checkIfShouldStopAtEpoch(wallSlot, config.stopAtEpoch):
|
||||
quit(0)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user