mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: ignore BlockHashNotFoundInChain error for unexpected canonical error log (#7286)
This commit is contained in:
@ -1431,12 +1431,23 @@ where
|
||||
if let Err((hash, error)) =
|
||||
self.try_make_sync_target_canonical(downloaded_num_hash)
|
||||
{
|
||||
tracing::error!(
|
||||
target: "consensus::engine",
|
||||
"Unexpected error while making sync target canonical: {:?}, {:?}",
|
||||
if !matches!(
|
||||
error,
|
||||
hash
|
||||
)
|
||||
CanonicalError::BlockchainTree(
|
||||
BlockchainTreeError::BlockHashNotFoundInChain { .. }
|
||||
)
|
||||
) {
|
||||
if error.is_fatal() {
|
||||
error!(target: "consensus::engine", %error, "Encountered fatal error while making sync target canonical: {:?}, {:?}", error, hash);
|
||||
} else {
|
||||
debug!(
|
||||
target: "consensus::engine",
|
||||
"Unexpected error while making sync target canonical: {:?}, {:?}",
|
||||
error,
|
||||
hash
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
InsertPayloadOk::Inserted(BlockStatus::Disconnected {
|
||||
|
||||
Reference in New Issue
Block a user