@@ -312,8 +312,13 @@ impl StateTrait for State {
312312 fn read_all_with_callback (
313313 & mut self , access_key_prefix : StorageKeyWithSpace ,
314314 callback : & mut dyn FnMut ( MptKeyValue ) ,
315+ space_storage_filter : Option < SpaceStorageFilter > ,
315316 ) -> Result < ( ) > {
316- self . read_all_with_callback_impl ( access_key_prefix, callback)
317+ self . read_all_with_callback_impl (
318+ access_key_prefix,
319+ callback,
320+ space_storage_filter,
321+ )
317322 }
318323
319324 fn compute_state_root ( & mut self ) -> Result < StateRootWithAuxInfo > {
@@ -990,6 +995,7 @@ impl State {
990995 pub fn read_all_with_callback_impl (
991996 & mut self , access_key_prefix : StorageKeyWithSpace ,
992997 callback : & mut dyn FnMut ( MptKeyValue ) ,
998+ space_storage_filter : Option < SpaceStorageFilter > ,
993999 ) -> Result < ( ) > {
9941000 self . ensure_temp_slab_for_db_load ( ) ;
9951001
@@ -1033,6 +1039,8 @@ impl State {
10331039 & delta_mpt_key_prefix,
10341040 & delta_mpt_key_prefix,
10351041 & mut inner_callback,
1042+ true ,
1043+ space_storage_filter,
10361044 ) ?;
10371045 } ;
10381046
@@ -1073,6 +1081,8 @@ impl State {
10731081 & intermediate_mpt_key_prefix,
10741082 & intermediate_mpt_key_prefix,
10751083 & mut inner_callback,
1084+ true ,
1085+ space_storage_filter,
10761086 ) ?;
10771087 }
10781088 }
@@ -1121,8 +1131,8 @@ use cfx_types::AddressWithSpace;
11211131use fallible_iterator:: FallibleIterator ;
11221132use primitives:: {
11231133 DeltaMptKeyPadding , EpochId , MerkleHash , MptValue , NodeMerkleTriplet ,
1124- SkipInputCheck , StateRoot , StaticBool , StorageKey , StorageKeyWithSpace ,
1125- StorageRoot , MERKLE_NULL_NODE , NULL_EPOCH ,
1134+ SkipInputCheck , SpaceStorageFilter , StateRoot , StaticBool , StorageKey ,
1135+ StorageKeyWithSpace , StorageRoot , MERKLE_NULL_NODE , NULL_EPOCH ,
11261136} ;
11271137use rustc_hex:: ToHex ;
11281138use std:: {
0 commit comments