mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 17:01:34 +00:00
fix blockchain.height()
This commit is contained in:
parent
05a9718b7c
commit
8834ed9714
1 changed files with 3 additions and 1 deletions
|
@ -79,7 +79,9 @@ class Blockchain(util.PrintError):
|
|||
self.set_local_height()
|
||||
|
||||
def height(self):
|
||||
return self.local_height + len(self.headers)
|
||||
if self.headers:
|
||||
return self.checkpoint + len(self.headers) - 1
|
||||
return self.local_height
|
||||
|
||||
def verify_header(self, header, prev_header, bits, target):
|
||||
prev_hash = hash_header(prev_header)
|
||||
|
|
Loading…
Add table
Reference in a new issue