mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 09:45:18 +00:00
fix reference to verifier
This commit is contained in:
parent
9994bbc56f
commit
960e7bc3df
2 changed files with 3 additions and 3 deletions
|
@ -406,7 +406,7 @@ class Network(threading.Thread):
|
||||||
return self.blockchain.read_header(tx_height)
|
return self.blockchain.read_header(tx_height)
|
||||||
|
|
||||||
def get_local_height(self):
|
def get_local_height(self):
|
||||||
return self.blockchain.local_height
|
return self.blockchain.height()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -844,7 +844,7 @@ class NewWallet:
|
||||||
if tx_height == 0:
|
if tx_height == 0:
|
||||||
tx_age = 0
|
tx_age = 0
|
||||||
else:
|
else:
|
||||||
tx_age = self.verifier.blockchain.height() - tx_height + 1
|
tx_age = self.network.get_local_height() - tx_height + 1
|
||||||
if tx_age > age:
|
if tx_age > age:
|
||||||
age = tx_age
|
age = tx_age
|
||||||
return age > 2
|
return age > 2
|
||||||
|
@ -1101,7 +1101,7 @@ class NewWallet:
|
||||||
inputs = []
|
inputs = []
|
||||||
|
|
||||||
for item in coins:
|
for item in coins:
|
||||||
if item.get('coinbase') and item.get('height') + COINBASE_MATURITY > self.network.blockchain.height():
|
if item.get('coinbase') and item.get('height') + COINBASE_MATURITY > self.network.get_local_height():
|
||||||
continue
|
continue
|
||||||
addr = item.get('address')
|
addr = item.get('address')
|
||||||
v = item.get('value')
|
v = item.get('value')
|
||||||
|
|
Loading…
Add table
Reference in a new issue