feat(interfaces): move BlockHashNotFoundInChain to BlockchainTreeError (#4697)

This commit is contained in:
Thomas Coratger
2023-09-21 13:16:22 +02:00
committed by GitHub
parent f00df57ea5
commit 6d3e229e12
4 changed files with 10 additions and 6 deletions

View File

@ -931,7 +931,7 @@ where
})
.with_latest_valid_hash(H256::zero())
}
RethError::Execution(BlockExecutionError::BlockHashNotFoundInChain { .. }) => {
RethError::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