Short-circuit syncdone on sync state done in item next
This commit is contained in:
parent
755a030175
commit
36a8609cb5
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user