mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix(trie): reveal blinded sparse trie when calculating root (#14449)
This commit is contained in:
@ -36,6 +36,14 @@ pub struct MultiProof {
|
||||
}
|
||||
|
||||
impl MultiProof {
|
||||
/// Returns true if the multiproof is empty.
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.account_subtree.is_empty() &&
|
||||
self.branch_node_hash_masks.is_empty() &&
|
||||
self.branch_node_tree_masks.is_empty() &&
|
||||
self.storages.is_empty()
|
||||
}
|
||||
|
||||
/// Return the account proof nodes for the given account path.
|
||||
pub fn account_proof_nodes(&self, path: &Nibbles) -> Vec<(Nibbles, Bytes)> {
|
||||
self.account_subtree.matching_nodes_sorted(path)
|
||||
|
||||
Reference in New Issue
Block a user