bump_fee: add_input_info is needed

This commit is contained in:
ThomasV 2016-10-14 05:38:43 +02:00
parent 8c603d6396
commit e64f630433
1 changed files with 2 additions and 1 deletions

View File

@ -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]