Browse Source

sanity check read_header

2.9.x
ThomasV 8 years ago
parent
commit
882e259a78
  1. 2
      lib/blockchain.py

2
lib/blockchain.py

@ -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…
Cancel
Save