chore(tree): remove redundant BlockchainTree RethError variant (#5269)

This commit is contained in:
Dan Cline
2023-11-01 16:03:01 -04:00
committed by GitHub
parent 4040cd7946
commit 7cc64024d9
3 changed files with 9 additions and 5 deletions

View File

@ -955,7 +955,9 @@ where
})
.with_latest_valid_hash(B256::ZERO)
}
RethError::BlockchainTree(BlockchainTreeError::BlockHashNotFoundInChain { .. }) => {
RethError::Canonical(CanonicalError::BlockchainTree(
BlockchainTreeError::BlockHashNotFoundInChain { .. },
)) => {
// This just means we couldn't find the block when attempting to make it canonical,
// so we should not warn the user, since this will result in us attempting to sync
// to a new target and is considered normal operation during sync