8
8
9
9
use crate :: utils:: { HashMap , HashSet } ;
10
10
use alloy_primitives:: { Address , Bytes , B256 } ;
11
- use reth_provider:: {
12
- providers:: ConsistentDbView , BlockReader , DatabaseProviderFactory , ExecutionOutcome ,
13
- } ;
11
+ use reth_provider:: { providers:: ConsistentDbView , BlockReader , DatabaseProviderFactory } ;
12
+ use revm:: database:: BundleState ;
14
13
use std:: sync:: Arc ;
15
14
16
15
#[ cfg( any( test, feature = "benchmark-utils" ) ) ]
@@ -140,7 +139,7 @@ impl SparseTrieError {
140
139
141
140
pub fn calculate_account_proofs_with_sparse_trie < Provider > (
142
141
consistent_db_view : ConsistentDbView < Provider > ,
143
- outcome : & ExecutionOutcome ,
142
+ outcome : & BundleState ,
144
143
proof_targets : & HashSet < Address > ,
145
144
shared_cache : & SparseTrieSharedCache ,
146
145
local_cache : & mut SparseTrieLocalCache ,
@@ -165,6 +164,7 @@ where
165
164
consistent_db_view,
166
165
shared_cache. cache_v2 . clone ( ) ,
167
166
outcome,
167
+ & [ ] ,
168
168
proof_targets,
169
169
) ;
170
170
match result {
@@ -182,7 +182,8 @@ where
182
182
183
183
pub fn calculate_root_hash_with_sparse_trie < Provider > (
184
184
consistent_db_view : ConsistentDbView < Provider > ,
185
- outcome : & ExecutionOutcome ,
185
+ outcome : & BundleState ,
186
+ incremental_change : & [ Address ] ,
186
187
shared_cache : & SparseTrieSharedCache ,
187
188
local_cache : & mut SparseTrieLocalCache ,
188
189
thread_pool : & Option < RootHashThreadPool > ,
@@ -196,6 +197,7 @@ where
196
197
calculate_root_hash_with_sparse_trie_internal (
197
198
consistent_db_view,
198
199
outcome,
200
+ incremental_change,
199
201
shared_cache,
200
202
local_cache,
201
203
version,
@@ -205,6 +207,7 @@ where
205
207
calculate_root_hash_with_sparse_trie_internal (
206
208
consistent_db_view,
207
209
outcome,
210
+ incremental_change,
208
211
shared_cache,
209
212
local_cache,
210
213
version,
@@ -214,7 +217,8 @@ where
214
217
215
218
pub fn calculate_root_hash_with_sparse_trie_internal < Provider > (
216
219
consistent_db_view : ConsistentDbView < Provider > ,
217
- outcome : & ExecutionOutcome ,
220
+ outcome : & BundleState ,
221
+ incremental_change : & [ Address ] ,
218
222
shared_cache : & SparseTrieSharedCache ,
219
223
local_cache : & mut SparseTrieLocalCache ,
220
224
version : ETHSpareMPTVersion ,
@@ -239,6 +243,7 @@ where
239
243
consistent_db_view,
240
244
shared_cache. cache_v2 . clone ( ) ,
241
245
outcome,
246
+ incremental_change,
242
247
& Default :: default ( ) ,
243
248
) ;
244
249
match result {
0 commit comments