chainsyncer

Blockchain syncer driver
Log | Files | Refs | LICENSE

commit 36a8609cb5c52504f3fbe49a0878bccbf8b9c7c9
parent 755a030175bab3034b389f3e8894ef787d02eb27
Author: lash <dev@holbrook.no>
Date:   Sat, 19 Mar 2022 01:25:24 +0000

Short-circuit syncdone on sync state done in item next

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

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