chainsyncer

Blockchain syncer driver
Log | Files | Refs | LICENSE

commit 80f9a8be887711b7e32860a01f9bf26aa718a3d0
parent 36a8609cb5c52504f3fbe49a0878bccbf8b9c7c9
Author: lash <dev@holbrook.no>
Date:   Sat, 19 Mar 2022 01:58:13 +0000

Rehabilitate sync driver on changes target handling

Diffstat:
Mchainsyncer/store/fs.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/chainsyncer/store/fs.py b/chainsyncer/store/fs.py @@ -76,10 +76,11 @@ class SyncFsItem: def next(self, advance_block=False): - v = self.sync_state.get(self.state_key) + v = self.sync_state.state(self.state_key) if v == self.sync_state.DONE: raise SyncDone(self.target) + v = self.sync_state.get(self.state_key) (block_number, tx_index, target) = sync_state_deserialize(v) if advance_block: block_number += 1