From 280223d9764651da187e05b265302d0428d98ceb Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Thu, 9 Mar 2023 19:27:14 +0200 Subject: [PATCH] Don't use the wrong SECONDS_PER_ETH1_BLOCK constant --- beacon_chain/eth1/eth1_monitor.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon_chain/eth1/eth1_monitor.nim b/beacon_chain/eth1/eth1_monitor.nim index a2df0c367..1a910d9ed 100644 --- a/beacon_chain/eth1/eth1_monitor.nim +++ b/beacon_chain/eth1/eth1_monitor.nim @@ -393,8 +393,8 @@ func voting_period_start_time(state: ForkedHashedBeaconState): uint64 = func is_candidate_block(cfg: RuntimeConfig, blk: Eth1Block, period_start: uint64): bool = - (blk.timestamp + cfg.SECONDS_PER_ETH1_BLOCK * cfg.ETH1_FOLLOW_DISTANCE <= period_start) and - (blk.timestamp + cfg.SECONDS_PER_ETH1_BLOCK * cfg.ETH1_FOLLOW_DISTANCE * 2 >= period_start) + (blk.timestamp + SECONDS_PER_SLOT * cfg.ETH1_FOLLOW_DISTANCE <= period_start) and + (blk.timestamp + SECONDS_PER_SLOT * cfg.ETH1_FOLLOW_DISTANCE * 2 >= period_start) func asEth2Digest*(x: BlockHash): Eth2Digest = Eth2Digest(data: array[32, byte](x))