File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -268,12 +268,6 @@ pub fn export_space_accounts_with_callback<F: Fn(AccountState)>(
268268
269269 let mut inner_callback = |( key, value) : ( Vec < u8 > , Box < [ u8 ] > ) | {
270270 total_key_count += 1 ;
271- let storage_key_with_space =
272- StorageKeyWithSpace :: from_key_bytes :: < SkipInputCheck > ( & key) ;
273- if storage_key_with_space. space != space {
274- core_space_key_count += 1 ;
275- return ;
276- }
277271
278272 if total_key_count % 10000 == 0 {
279273 println ( & format ! (
@@ -282,6 +276,13 @@ pub fn export_space_accounts_with_callback<F: Fn(AccountState)>(
282276 ) ) ;
283277 }
284278
279+ let storage_key_with_space =
280+ StorageKeyWithSpace :: from_key_bytes :: < SkipInputCheck > ( & key) ;
281+ if storage_key_with_space. space != space {
282+ core_space_key_count += 1 ;
283+ return ;
284+ }
285+
285286 if let StorageKey :: AccountKey ( address_bytes) =
286287 storage_key_with_space. key
287288 {
Original file line number Diff line number Diff line change @@ -320,7 +320,7 @@ impl SingleMptState {
320320 total_key_count += 1 ;
321321 if total_key_count % 10000 == 0 {
322322 println ! (
323- "read_all_with_callback_impl -> total_key_count: {} {}" ,
323+ "read_all_with_callback_impl: total_key_count {} key {}" ,
324324 total_key_count,
325325 k. to_hex:: <String >( )
326326 ) ;
You can’t perform that action at this time.
0 commit comments