mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: make block hash not found a warning (#3234)
This commit is contained in:
@ -28,7 +28,7 @@ use std::{
|
|||||||
collections::{BTreeMap, HashMap},
|
collections::{BTreeMap, HashMap},
|
||||||
sync::Arc,
|
sync::Arc,
|
||||||
};
|
};
|
||||||
use tracing::{debug, error, info, instrument, trace};
|
use tracing::{debug, error, info, instrument, trace, warn};
|
||||||
|
|
||||||
#[cfg_attr(doc, aquamarine::aquamarine)]
|
#[cfg_attr(doc, aquamarine::aquamarine)]
|
||||||
/// Tree of chains and its identifications.
|
/// Tree of chains and its identifications.
|
||||||
@ -887,7 +887,7 @@ impl<DB: Database, C: Consensus, EF: ExecutorFactory> BlockchainTree<DB, C, EF>
|
|||||||
}
|
}
|
||||||
|
|
||||||
let Some(chain_id) = self.block_indices.get_blocks_chain_id(block_hash) else {
|
let Some(chain_id) = self.block_indices.get_blocks_chain_id(block_hash) else {
|
||||||
error!(target: "blockchain_tree", ?block_hash, "Block hash not found in block indices");
|
warn!(target: "blockchain_tree", ?block_hash, "Block hash not found in block indices");
|
||||||
// TODO: better error
|
// TODO: better error
|
||||||
return Err(BlockExecutionError::BlockHashNotFoundInChain { block_hash: *block_hash }.into())
|
return Err(BlockExecutionError::BlockHashNotFoundInChain { block_hash: *block_hash }.into())
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user