Skip to content
Snippets Groups Projects
Commit 144c285a authored by Marcin's avatar Marcin
Browse files

issue #91: incorrect results when initial sync started not from scratch

The problem was with column hive_stat.block_num which is used only as
a last synced block number, but it was set with a last block number
known by hived
parent 294e2411
No related branches found
No related tags found
2 merge requests!456Release candidate v1 24,!354issue #91: incorrect results when initial sync started not from scratch
......@@ -399,7 +399,7 @@ class Sync:
self._db.query("""UPDATE hive_state SET block_num = :block_num,
steem_per_mvest = :spm, usd_per_steem = :ups,
sbd_per_steem = :sps, dgpo = :dgpo""",
block_num=state['dgpo']['head_block_number'],
block_num=Blocks.head_num(),
spm=state['steem_per_mvest'],
ups=state['usd_per_steem'],
sps=state['sbd_per_steem'],
......
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