tfix: set tx_height when it is not None - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit bd717897e0cc53a3888288349dd15a19252f4994
DIR parent 1b19382887c6c8f60cd98ed2b0ee8e334274362b
HTML Author: thomasv <thomasv@gitorious>
Date: Sun, 24 Feb 2013 09:39:43 +0100
fix: set tx_height when it is not None
Diffstat:
M lib/wallet.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/lib/wallet.py b/lib/wallet.py
t@@ -576,7 +576,7 @@ class Wallet:
if self.verifier: self.verifier.add(tx_hash, tx_height)
# set the height in case it changed
txh = self.tx_height.get(tx_hash)
- if txh and txh != tx_height:
+ if txh is not None and txh != tx_height:
print_error( "changing height for tx", tx_hash )
self.tx_height[tx_hash] = tx_height
t@@ -949,7 +949,7 @@ class Wallet:
self.verifier.add(tx_hash, tx_height)
# set the height in case it changed
txh = self.tx_height.get(tx_hash)
- if txh and txh != tx_height:
+ if txh is not None and txh != tx_height:
print_error( "changing height for tx", tx_hash )
self.tx_height[tx_hash] = tx_height