chore: refactor BlockExecutionError into validation and internal errors (#9911)

This commit is contained in:
Dan Cline
2024-07-30 14:30:30 -04:00
committed by GitHub
parent dec0c44035
commit 9586b9a4f5
6 changed files with 72 additions and 33 deletions

View File

@@ -289,10 +289,7 @@ impl InsertBlockErrorKind {
true
}
// these are internal errors, not caused by an invalid block
BlockExecutionError::LatestBlock(_) |
BlockExecutionError::Pruning(_) |
BlockExecutionError::AppendChainDoesntConnect { .. } |
BlockExecutionError::Other(_) => false,
BlockExecutionError::Internal(_) => false,
}
}
Self::Tree(err) => {