Rehabilitate sync driver on changes target handling
This commit is contained in:
parent
36a8609cb5
commit
80f9a8be88
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user