tbugfix: referenced transactions - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 3796fceb28afddca5df03d309189560810271f69
DIR parent bf12bac1f23b92e53ddd783e8231d16d8c5d5b12
HTML Author: ecdsa <ecdsa@github>
Date: Sat, 1 Jun 2013 19:26:07 +0200
bugfix: referenced transactions
Diffstat:
M lib/wallet.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
DIR diff --git a/lib/wallet.py b/lib/wallet.py
t@@ -119,8 +119,12 @@ class Wallet:
if self.seed_version != SEED_VERSION:
raise ValueError("This wallet seed is deprecated. Please run upgrade.py for a diagnostic.")
- for tx_hash in self.transactions.keys():
- self.update_tx_outputs(tx_hash)
+ for tx_hash, tx in self.transactions.items():
+ if self.check_new_tx(tx_hash, tx):
+ self.update_tx_outputs(tx_hash)
+ else:
+ print_error("unreferenced tx", tx_hash)
+ self.transactions.pop(tx_hash)
def set_up_to_date(self,b):