mirror of
https://github.com/LBRYFoundation/lbry-sdk.git
synced 2025-08-23 17:27:25 +00:00
fix unwinding readers during reorg
This commit is contained in:
parent
7fe34ebb78
commit
bbfe263591
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ class BlockchainReader:
|
||||||
self.unwind()
|
self.unwind()
|
||||||
last_height -= 1
|
last_height -= 1
|
||||||
self.db.read_db_state()
|
self.db.read_db_state()
|
||||||
if not self.last_state or self.last_state.height < state.height:
|
if not self.last_state or last_height < state.height:
|
||||||
for height in range(last_height + 1, state.height + 1):
|
for height in range(last_height + 1, state.height + 1):
|
||||||
self.log.info("advancing to %i", height)
|
self.log.info("advancing to %i", height)
|
||||||
self.advance(height)
|
self.advance(height)
|
||||||
|
|
Loading…
Add table
Reference in a new issue