mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-19 03:04:27 -05:00
refactor(trie): avoid building prefix set for v2 storage proofs (#20898)
This commit is contained in:
@@ -115,8 +115,11 @@ impl ParallelProof {
|
||||
target_slots: B256Set,
|
||||
) -> Result<DecodedStorageMultiProof, ParallelStateRootError> {
|
||||
let total_targets = target_slots.len();
|
||||
let prefix_set = PrefixSetMut::from(target_slots.iter().map(Nibbles::unpack));
|
||||
let prefix_set = prefix_set.freeze();
|
||||
let prefix_set = if self.v2_proofs_enabled {
|
||||
PrefixSet::default()
|
||||
} else {
|
||||
PrefixSetMut::from(target_slots.iter().map(Nibbles::unpack)).freeze()
|
||||
};
|
||||
|
||||
trace!(
|
||||
target: "trie::parallel_proof",
|
||||
|
||||
Reference in New Issue
Block a user