mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
perf(tree): reveal multiproof in tree task (#12949)
This commit is contained in:
@ -503,16 +503,7 @@ fn update_sparse_trie(
|
||||
let started_at = Instant::now();
|
||||
|
||||
// Reveal new accounts and storage slots.
|
||||
for (address, slots) in targets {
|
||||
let path = Nibbles::unpack(address);
|
||||
trie.reveal_account(address, multiproof.account_proof_nodes(&path))?;
|
||||
|
||||
let storage_proofs = multiproof.storage_proof_nodes(address, slots);
|
||||
|
||||
for (slot, proof) in storage_proofs {
|
||||
trie.reveal_storage_slot(address, slot, proof)?;
|
||||
}
|
||||
}
|
||||
trie.reveal_multiproof(targets, multiproof)?;
|
||||
|
||||
// Update storage slots with new values and calculate storage roots.
|
||||
let mut storage_roots = FbHashMap::default();
|
||||
|
||||
Reference in New Issue
Block a user