fix offline signing: redeemPubkey was missing

This commit is contained in:
ThomasV 2013-10-08 19:24:22 +02:00
parent 13fbf9904e
commit 367b11681b
2 changed files with 3 additions and 1 deletions

View File

@ -722,4 +722,5 @@ class Transaction:
txin['address'] = item['address']
txin['scriptPubKey'] = item['scriptPubKey']
txin['redeemScript'] = item.get('redeemScript')
txin['redeemPubkey'] = item.get('redeemPubkey')
txin['KeyID'] = item.get('KeyID')

View File

@ -1207,7 +1207,8 @@ class Wallet:
tx = self.make_unsigned_transaction(outputs, fee, change_addr, domain)
keypairs = {}
self.add_keypairs_from_wallet(tx, keypairs, password)
self.sign_transaction(tx, keypairs)
if keypairs:
self.sign_transaction(tx, keypairs)
return tx