mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 08:51:32 +00:00
sanity check read_header
This commit is contained in:
parent
4c2deb6d2b
commit
882e259a78
1 changed files with 2 additions and 0 deletions
|
@ -242,6 +242,8 @@ class Blockchain(util.PrintError):
|
|||
|
||||
def read_header(self, height):
|
||||
assert self.parent_id != self.checkpoint
|
||||
if height < 0:
|
||||
return
|
||||
if height < self.checkpoint:
|
||||
return self.parent().read_header(height)
|
||||
if height > self.height():
|
||||
|
|
Loading…
Add table
Reference in a new issue