reth icon indicating copy to clipboard operation
reth copied to clipboard

perf: disable storage branch masks for non-target accounts

Open Bashmunta opened this issue 1 week ago • 0 comments
trafficstars

Disable collecting storage branch-node masks in Proof::multiproof() when the current account leaf is not a proof target. We only need the storage root for account RLP encoding in this case, so collecting masks is unnecessary overhead.

This reduces minor allocations and bookkeeping without changing correctness or public API. Storage masks remain collected for target accounts to support blinded trie node retrieval and proof introspection.

Bashmunta avatar Nov 08 '25 11:11 Bashmunta