-
Notifications
You must be signed in to change notification settings - Fork 117
refactor(l1): make TrieError::InconsistentTree more specific #4836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 10 commits
3f423cf
a0d62b6
335cac6
8f37de6
91f0139
d1ba664
782f3bf
61c17d6
569a4c1
c96891c
5f0c9bf
3118135
7d44ad2
2b94661
47863ea
ab4f7cd
e721265
aa26484
ff58529
dad633a
7d2cc47
8a1b84a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| use ethereum_types::H256; | ||
| use ethrex_rlp::error::RLPDecodeError; | ||
| use thiserror::Error; | ||
|
|
||
|
|
@@ -7,8 +8,14 @@ pub enum TrieError { | |
| RLPDecode(#[from] RLPDecodeError), | ||
| #[error("Verification Error: {0}")] | ||
| Verify(String), | ||
| #[error("Inconsistent internal tree structure")] | ||
| InconsistentTree, | ||
| #[error("Inconsistent internal tree structure: Node with hash {0:?} not found")] | ||
| InconsistentTree(H256), | ||
| #[error( | ||
| "Inconsistent internal tree structure: Node with hash {0:?} not found from Intermediate Node with hash {1:?}" | ||
| )] | ||
| IntermediateNodeNotFound(H256, H256), | ||
| #[error("Root node with hash {0:#x} not found")] | ||
| RootNotFound(H256), | ||
|
||
| #[error("Lock Error: Panicked when trying to acquire a lock")] | ||
| LockError, | ||
| #[error("Database error: {0}")] | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.