feat: sparse trie as cache (#21583)

Co-authored-by: yongkangc <chiayongkang@hotmail.com>
Co-authored-by: Amp <amp@ampcode.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
Co-authored-by: Brian Picciano <me@mediocregopher.com>
This commit is contained in:
Arsenii Kulikov
2026-01-29 23:11:48 +04:00
committed by GitHub
parent 796ba6d5dc
commit 19bf580f93
9 changed files with 516 additions and 65 deletions

View File

@@ -171,7 +171,7 @@ pub enum SparseTrieErrorKind {
/// Path to the node.
path: Nibbles,
/// Node that was at the path when revealing.
node: Box<dyn core::fmt::Debug + Send>,
node: Box<dyn core::fmt::Debug + Send + Sync>,
},
/// RLP error.
#[error(transparent)]
@@ -184,7 +184,7 @@ pub enum SparseTrieErrorKind {
},
/// Other.
#[error(transparent)]
Other(#[from] Box<dyn core::error::Error + Send>),
Other(#[from] Box<dyn core::error::Error + Send + Sync>),
}
/// Trie witness errors.