mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 17:01:34 +00:00
fix off-by-one error when syncing from genesis w/o checkpoints
This commit is contained in:
parent
3b6af914e1
commit
09dfb0fd1d
1 changed files with 2 additions and 2 deletions
|
@ -381,7 +381,7 @@ class Interface(PrintError):
|
|||
height -= 1
|
||||
checkp = False
|
||||
if height <= constants.net.max_checkpoint():
|
||||
height = constants.net.max_checkpoint() + 1
|
||||
height = constants.net.max_checkpoint()
|
||||
checkp = True
|
||||
|
||||
header = await self.get_block_header(height, 'backward')
|
||||
|
@ -396,7 +396,7 @@ class Interface(PrintError):
|
|||
next_height = self.tip - 2 * delta
|
||||
checkp = False
|
||||
if next_height <= constants.net.max_checkpoint():
|
||||
next_height = constants.net.max_checkpoint() + 1
|
||||
next_height = constants.net.max_checkpoint()
|
||||
checkp = True
|
||||
height = next_height
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue