Skip to content

Commit

Permalink
Remove duplicate method.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmygchen committed Apr 30, 2024
1 parent ad82b58 commit 4adbd29
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion beacon_node/beacon_chain/src/beacon_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
if let Some(block) = self.early_attester_cache.get_block(*block_root) {
return BlockImportStatus::PendingImport(block);
}
if let Ok(true) = self.store.has_block(block_root) {
if let Ok(true) = self.store.block_exists(block_root) {
BlockImportStatus::Imported
} else {
BlockImportStatus::Unknown
Expand Down
5 changes: 0 additions & 5 deletions beacon_node/store/src/hot_cold_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -573,11 +573,6 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> HotColdDB<E, Hot, Cold>
})
}

pub fn has_block(&self, block_root: &Hash256) -> Result<bool, Error> {
self.hot_db
.key_exists(DBColumn::BeaconBlock.into(), block_root.as_bytes())
}

/// Fetch a block from the store, ignoring which fork variant it *should* be for.
pub fn get_block_any_variant<Payload: AbstractExecPayload<E>>(
&self,
Expand Down

0 comments on commit 4adbd29

Please sign in to comment.