Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
hansieodendaal committed Oct 27, 2023
1 parent 6a93ea3 commit 40838b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base_layer/core/src/chain_storage/blockchain_database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ where B: BlockchainBackend
/// Returns true if this block exists in the chain, or is orphaned.
pub fn chain_block_or_orphan_block_exists(&self, hash: BlockHash) -> Result<bool, ChainStorageError> {
let db = self.db_read_access()?;
// we need to check if the block accumulated data exists, and the header might exist without a body
// we need to check if the block accumulated data exists, and the header might exist without a body
Ok(db.fetch_block_accumulated_data(&hash)?.is_some() || db.contains(&DbKey::OrphanBlock(hash))?)
}

Expand Down

0 comments on commit 40838b6

Please sign in to comment.