mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-11 06:46:10 +00:00
consider blocks with deposits in eth1 data vote (#3944)
When importing blocks with deposits from the EL, the timestamp is never initialized for them. Therefore, only blocks without deposits (for which the timestamp is obtained) are considered for `is_candidate_block`. This is fixed by also importing timestamps for blocks with deposits.
This commit is contained in:
parent
4ef621f926
commit
ede83b1805
@ -1174,6 +1174,7 @@ proc syncBlockRange(m: Eth1Monitor,
|
||||
|
||||
for i in 0 ..< blocksWithDeposits.len:
|
||||
let blk = blocksWithDeposits[i]
|
||||
awaitWithRetries m.dataProvider.fetchTimestamp(blk)
|
||||
|
||||
if blk.number > fullSyncFromBlock:
|
||||
let lastBlock = m.depositsChain.blocks.peekLast
|
||||
|
Loading…
x
Reference in New Issue
Block a user