diff --git a/hive/db/db_state.py b/hive/db/db_state.py index 3d7b7865db485034fbc0e95f82be31261261bfb3..64dd35b68f7fcb47682de5267626392ae137a9bf 100644 --- a/hive/db/db_state.py +++ b/hive/db/db_state.py @@ -206,7 +206,9 @@ class DbState: last_imported_block = DbState.db().query_one("SELECT block_num FROM hive_state LIMIT 1") - assert current_imported_block >= last_imported_block + log.info("[INIT] Current imported block: %s Last imported block: %s", current_imported_block, last_imported_block) + if last_imported_block > current_imported_block: + last_imported_block = current_imported_block synced_blocks = current_imported_block - last_imported_block