chainsyncer

Blockchain syncer driver
Log | Files | Refs | LICENSE

commit f521162e7bef8745587b0f06d48bb33bc17f5f81
parent 9be67bd78a5ef3950e3a4962dc25c75ea24da761
Author: lash <dev@holbrook.no>
Date:   Sun, 10 Apr 2022 15:26:42 +0000

Move to SYNC state after start

Diffstat:
MCHANGELOG | 1+
Mchainsyncer/store/fs.py | 2++
2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG @@ -1,4 +1,5 @@ * 0.3.1 - Upgrade to release shep version + - Move sync state to SYNC after start * 0.3.0 - Re-implement chainsyncer on shep diff --git a/chainsyncer/store/fs.py b/chainsyncer/store/fs.py @@ -79,6 +79,8 @@ class SyncFsItem: v = self.sync_state.state(self.state_key) if v == self.sync_state.DONE: raise SyncDone(self.target) + elif v == self.sync_state.NEW: + self.sync_state.next(self.state_key) v = self.sync_state.get(self.state_key) (block_number, tx_index, target) = sync_state_deserialize(v)