Skip to content
Snippets Groups Projects
Commit b40ca4d2 authored by Mariusz Trela's avatar Mariusz Trela
Browse files

Small fix in `_after_initial_sync` method

parent 2341ac57
No related branches found
No related tags found
3 merge requests!456Release candidate v1 24,!230Setup monitoring with pghero,!144Restoring indexes is always done
This commit is part of merge request !144. Comments created here will be created in the context of that merge request.
...@@ -206,7 +206,9 @@ class DbState: ...@@ -206,7 +206,9 @@ class DbState:
last_imported_block = DbState.db().query_one("SELECT block_num FROM hive_state LIMIT 1") 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 synced_blocks = current_imported_block - last_imported_block
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment