Fix rename fn bug

Co-authored-by: realbigsean <seananderson33@GMAIL.com>
This commit is contained in:
Emilia Hane 2023-01-18 19:40:15 +01:00 committed by Emilia Hane
parent a00b355800
commit 654e59cbba
No known key found for this signature in database
GPG Key ID: E73394F9C09206FA

View File

@ -247,7 +247,7 @@ impl<T: BeaconChainTypes> Worker<T> {
); );
} }
Ok((Some(block), None)) => { Ok((Some(block), None)) => {
let data_availability_boundary_by_root = self.chain.data_availability_boundary_by_root_rpc_request(); let data_availability_boundary_by_root = self.chain.finalized_data_availability_boundary();
let block_epoch = block.epoch(); let block_epoch = block.epoch();
if Some(block_epoch) >= data_availability_boundary_by_root { if Some(block_epoch) >= data_availability_boundary_by_root {