Short-circuit syncdone on sync state done in item next

This commit is contained in:
lash 2022-03-19 01:25:24 +00:00
parent 755a030175
commit 36a8609cb5
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746

View File

@ -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: