mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-26 13:15:16 +00:00
do not report pre-Merge sync progress as /opt
(#4801)
Before the merge, assume `payloadStatus == NewPaylodStatus.valid` to avoid cases of sync progress being reported with `/opt` suffix.
This commit is contained in:
parent
7857c47a8f
commit
b7d08d0a38
@ -349,7 +349,8 @@ proc storeBlock*(
|
||||
payloadStatus =
|
||||
if maybeFinalized and
|
||||
(self.lastPayload + SLOTS_PER_PAYLOAD) > signedBlock.message.slot and
|
||||
(signedBlock.message.slot + PAYLOAD_PRE_WALL_SLOTS) < wallSlot:
|
||||
(signedBlock.message.slot + PAYLOAD_PRE_WALL_SLOTS) < wallSlot and
|
||||
signedBlock.message.is_execution_block:
|
||||
# Skip payload validation when message source (reasonably) claims block
|
||||
# has been finalized - this speeds up forward sync - in the worst case
|
||||
# that the claim is false, we will correct every time we process a block
|
||||
|
Loading…
x
Reference in New Issue
Block a user