fix(trie): always create empty storage multiproofs (#12915)

This commit is contained in:
Roman Krasiuk
2024-11-28 14:01:57 +01:00
committed by GitHub
parent 1d5bd46594
commit eac02d9458
2 changed files with 11 additions and 3 deletions

View File

@ -2,7 +2,11 @@
use crate::{Nibbles, TrieAccount};
use alloy_consensus::constants::KECCAK_EMPTY;
use alloy_primitives::{keccak256, Address, Bytes, B256, U256};
use alloy_primitives::{
keccak256,
map::{hash_map, HashMap},
Address, Bytes, B256, U256,
};
use alloy_rlp::{encode_fixed_size, Decodable, EMPTY_STRING_CODE};
use alloy_trie::{
nodes::TrieNode,
@ -11,7 +15,6 @@ use alloy_trie::{
};
use itertools::Itertools;
use reth_primitives_traits::Account;
use std::collections::{hash_map, HashMap};
/// The state multiproof of target accounts and multiproofs of their storage tries.
/// Multiproof is effectively a state subtrie that only contains the nodes