From 89c277de9d70b29918b5c6c3596bf4486584adb2 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sat, 23 May 2015 08:45:27 +0200 Subject: [PATCH] fix pruning error in #1223 --- lib/wallet.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/wallet.py b/lib/wallet.py index 2c2053dbc..e3cc8ca9d 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -654,6 +654,7 @@ class Abstract_Wallet(object): for addr, l in dd.items(): for n, v, is_cb in l: if n == prevout_n: + print_error("found pay-to-pubkey address:", addr) return addr def add_transaction(self, tx_hash, tx, tx_height): @@ -669,10 +670,6 @@ class Abstract_Wallet(object): ser = prevout_hash + ':%d'%prevout_n if addr == "(pubkey)": addr = self.find_pay_to_pubkey_address(prevout_hash, prevout_n) - if addr: - print_error("found pay-to-pubkey address:", addr) - else: - self.pruned_txo[ser] = tx_hash # find value from prev output if addr and self.is_mine(addr): dd = self.txo.get(prevout_hash, {})