File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
crates/storage/src/connection Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -348,6 +348,12 @@ impl Transaction<'_> {
348
348
break ScanResult :: Done ;
349
349
}
350
350
351
+ // Check if we've reached our Bloom filter load limit
352
+ if bloom_filters_loaded >= max_uncached_bloom_filters_to_load. get ( ) {
353
+ tracing:: trace!( "Bloom filter limit reached" ) ;
354
+ break ScanResult :: ContinueFrom ( block_number) ;
355
+ }
356
+
351
357
// Check bloom filter
352
358
if !key_filter_is_empty || filter. contract_address . is_some ( ) {
353
359
let bloom = self . load_bloom ( reorg_counter, block_number) ?;
@@ -398,12 +404,6 @@ impl Transaction<'_> {
398
404
}
399
405
400
406
block_number += 1 ;
401
-
402
- // Check if we've reached our Bloom filter load limit
403
- if bloom_filters_loaded >= max_uncached_bloom_filters_to_load. get ( ) {
404
- tracing:: trace!( "Bloom filter limit reached" ) ;
405
- break ScanResult :: ContinueFrom ( block_number) ;
406
- }
407
407
} ;
408
408
409
409
match result {
You can’t perform that action at this time.
0 commit comments