tfix reference to verifier - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 960e7bc3dfd2fea3f30b6265a47ffb8faa9bde58
DIR parent 9994bbc56f97af4911d5a852e26b94b8ed476382
HTML Author: ThomasV <thomasv@gitorious>
Date: Tue, 11 Mar 2014 09:38:08 +0100
fix reference to verifier
Diffstat:
M lib/network.py | 2 +-
M lib/wallet.py | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
DIR diff --git a/lib/network.py b/lib/network.py
t@@ -406,7 +406,7 @@ class Network(threading.Thread):
return self.blockchain.read_header(tx_height)
def get_local_height(self):
- return self.blockchain.local_height
+ return self.blockchain.height()
DIR diff --git a/lib/wallet.py b/lib/wallet.py
t@@ -844,7 +844,7 @@ class NewWallet:
if tx_height == 0:
tx_age = 0
else:
- tx_age = self.verifier.blockchain.height() - tx_height + 1
+ tx_age = self.network.get_local_height() - tx_height + 1
if tx_age > age:
age = tx_age
return age > 2
t@@ -1101,7 +1101,7 @@ class NewWallet:
inputs = []
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
addr = item.get('address')
v = item.get('value')