Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
SWvheerden committed Aug 10, 2022
1 parent 119bad8 commit ded0584
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion base_layer/core/src/base_node/service/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ where B: BlockchainBackend + 'static

match result {
Err(BaseNodeServiceError::CommsInterfaceError(CommsInterfaceError::ChainStorageError(
ChainStorageError::CannotAcquireFileLock,
ChainStorageError::AddBlockOperationLocked,
))) => {
// Special case, dont log this again as an error
},
Expand Down
2 changes: 0 additions & 2 deletions base_layer/core/src/chain_storage/blockchain_database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1229,8 +1229,6 @@ pub fn calculate_mmr_roots<T: BlockchainBackend>(db: &T, block: &Block) -> Resul

let metadata = db.fetch_chain_metadata()?;
if header.prev_hash != *metadata.best_block() {
error!(target: LOG_TARGET, "Block hash: {}", header.hash().to_hex());
error!(target: LOG_TARGET, "Block : {}", block);
return Err(ChainStorageError::CannotCalculateNonTipMmr(format!(
"Block (#{}) previous hash is {} but the current tip is #{} {}",
header.height,
Expand Down

0 comments on commit ded0584

Please sign in to comment.