commit e64f63043380b323e8deff80675231a6b4f3e184
parent 8c603d63965c3b21471e8d5c12e709a70df4e49a
Author: ThomasV <thomasv@electrum.org>
Date: Fri, 14 Oct 2016 05:38:43 +0200
bump_fee: add_input_info is needed
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/wallet.py b/lib/wallet.py
@@ -1013,6 +1013,7 @@ class Abstract_Wallet(PrintError):
outputs = copy.deepcopy(tx.outputs())
for txin in inputs:
txin['signatures'] = [None] * len(txin['signatures'])
+ self.add_input_info(txin)
for i, o in enumerate(outputs):
otype, address, value = o
if self.is_mine(address) and value >= delta:
@@ -1040,6 +1041,7 @@ class Abstract_Wallet(PrintError):
for k in self.get_keystores():
if k.can_sign(tx):
return True
+ return False
def get_input_tx(self, tx_hash):
# First look up an input transaction in the wallet where it
@@ -1374,7 +1376,6 @@ class P2PK_Wallet(Abstract_Wallet):
pubkey = self.get_public_key(address)
assert pubkey is not None
x_pubkey = pubkey
-
txin['x_pubkeys'] = [x_pubkey]
txin['pubkeys'] = [pubkey]
txin['signatures'] = [None]