fix(trie): sparse trie tree masks (#13760)

This commit is contained in:
Alexey Shekhirin
2025-01-10 11:28:54 +00:00
committed by GitHub
parent 986c75434a
commit 69f9e1628a
7 changed files with 245 additions and 157 deletions

View File

@ -748,7 +748,7 @@ where
config.prefix_sets,
thread_pool,
)
.with_branch_node_hash_masks(true)
.with_branch_node_masks(true)
.multiproof(proof_targets)?)
}

View File

@ -198,7 +198,7 @@ fn branch_nodes_equal(
) -> bool {
if let (Some(task), Some(regular)) = (task.as_ref(), regular.as_ref()) {
task.state_mask == regular.state_mask &&
// We do not compare the tree mask because it is known to be mismatching
task.tree_mask == regular.tree_mask &&
task.hash_mask == regular.hash_mask &&
task.hashes == regular.hashes &&
task.root_hash == regular.root_hash