diff --git a/beacon_node/beacon_chain/src/eth1_chain.rs b/beacon_node/beacon_chain/src/eth1_chain.rs index 9e1bcbe6fa..2252d5b9c9 100644 --- a/beacon_node/beacon_chain/src/eth1_chain.rs +++ b/beacon_node/beacon_chain/src/eth1_chain.rs @@ -475,10 +475,10 @@ impl Eth1ChainBackend for CachingEth1Backend { voting_period_start_slot, ); - let blocks = self.core.blocks().read(); - - let votes_to_consider = - get_votes_to_consider(blocks.iter(), voting_period_start_seconds, spec); + let votes_to_consider = { + let blocks = self.core.blocks().read(); + get_votes_to_consider(blocks.iter(), voting_period_start_seconds, spec) + }; trace!( self.log,