-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
197 additions
and
144 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
use alloy_primitives::{Address, FixedBytes}; | ||
use reth_consensus::ConsensusError; | ||
use reth_evm::execute::BlockExecutionError; | ||
use rsp_mpt::Error as MptError; | ||
|
||
#[derive(Debug, thiserror::Error)] | ||
pub enum ClientError { | ||
#[error("Failed to recover senders from signatures")] | ||
SignatureRecoveryFailed, | ||
#[error("Mismatched state root after executing the block")] | ||
MismatchedStateRoot, | ||
#[error("Missing bytecode for account {}", .0)] | ||
MissingBytecode(Address), | ||
#[error("Missing trie for address {}", .0)] | ||
MissingTrie(Address), | ||
#[error("Invalid block number found in headers \n expected: {} found: {}", .0, .1)] | ||
InvalidHeaderBlockNumber(u64, u64), | ||
#[error("Invalid parent header found for block \n expected: {}, found: {}", .0, .1)] | ||
InvalidHeaderParentHash(FixedBytes<32>, FixedBytes<32>), | ||
#[error("Failed to validate post exectution state {}", 0)] | ||
PostExecutionError(#[from] ConsensusError), | ||
#[error("Block Execution Failed: {}", .0)] | ||
BlockExecutionError(#[from] BlockExecutionError), | ||
#[error("Mpt Error: {}", .0)] | ||
MptError(#[from] MptError), | ||
} |
Oops, something went wrong.