mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-09 13:56:23 +00:00
weaken overaggressive different-fork-next-slot check (#4665)
This commit is contained in:
parent
0a87889eaf
commit
8ee5e8271d
@ -354,11 +354,14 @@ proc runProposalForkchoiceUpdated*(
|
|||||||
nextWallSlot, validatorIndex, nextProposer
|
nextWallSlot, validatorIndex, nextProposer
|
||||||
|
|
||||||
withState(self.dag.headState):
|
withState(self.dag.headState):
|
||||||
let nextSlotFork = self.dag.cfg.forkAtEpoch(nextWallSlot.epoch)
|
let
|
||||||
if forkyState.data.fork != nextSlotFork:
|
nextSlotFork = self.dag.cfg.forkAtEpoch(nextWallSlot.epoch)
|
||||||
debug "runProposalForkchoiceUpdated: about to do fork transition; don't have appropriate state to fcU ahead",
|
nextSlotForkVersion = self.dag.cfg.forkVersionAtEpoch(nextWallSlot.epoch)
|
||||||
|
if nextSlotForkVersion == self.dag.cfg.CAPELLA_FORK_VERSION and
|
||||||
|
forkyState.data.fork.current_version != nextSlotFork.current_version:
|
||||||
|
debug "runProposalForkchoiceUpdated: about to do Capella transition; don't have appropriate state to fcU ahead",
|
||||||
nextWallSlot, validatorIndex, nextProposer, nextSlotFork,
|
nextWallSlot, validatorIndex, nextProposer, nextSlotFork,
|
||||||
stateFork = forkyState.data.fork
|
nextSlotForkVersion, stateFork = forkyState.data.fork
|
||||||
|
|
||||||
# Approximately lines up with validator_duties version. Used optimistically/
|
# Approximately lines up with validator_duties version. Used optimistically/
|
||||||
# opportunistically, so mismatches are fine if not too frequent.
|
# opportunistically, so mismatches are fine if not too frequent.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user