pub trait StorageTrieWriter: Send + Sync {
// Required methods
fn write_storage_trie_updates(
&self,
storage_tries: &B256HashMap<StorageTrieUpdates>,
) -> ProviderResult<usize>;
fn write_individual_storage_trie_updates(
&self,
hashed_address: B256,
updates: &StorageTrieUpdates,
) -> ProviderResult<usize>;
}
Expand description
Storage Trie Writer
Required Methods§
Sourcefn write_storage_trie_updates(
&self,
storage_tries: &B256HashMap<StorageTrieUpdates>,
) -> ProviderResult<usize>
fn write_storage_trie_updates( &self, storage_tries: &B256HashMap<StorageTrieUpdates>, ) -> ProviderResult<usize>
Writes storage trie updates from the given storage trie map.
First sorts the storage trie updates by the hashed address key, writing in sorted order.
Returns the number of entries modified.
Sourcefn write_individual_storage_trie_updates(
&self,
hashed_address: B256,
updates: &StorageTrieUpdates,
) -> ProviderResult<usize>
fn write_individual_storage_trie_updates( &self, hashed_address: B256, updates: &StorageTrieUpdates, ) -> ProviderResult<usize>
Writes storage trie updates for the given hashed address.