Skip to content

Commit fd6def6

Browse files
committed
Fix bug, import entire state
1 parent d755b69 commit fd6def6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/gethimport.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,10 +368,8 @@ def sweep_state(gethdb: GethDatabase, trinitydb: LevelDB):
368368
trinitydb[key] = value
369369
imported_entries += 1
370370

371-
if key >= bucket:
371+
if key >= bucket and bucket != b'\xff\xff':
372372
logger.debug(f'imported: {bucket.hex()} skipped={skipped_keys}')
373-
if bucket == b'\xff' * 2:
374-
break
375373
bucket = (int.from_bytes(bucket, 'big') + 1).to_bytes(2, 'big')
376374

377375
logger.info(f'sweep_state: successfully imported {imported_entries} state entries')

0 commit comments

Comments
 (0)