Browse Source

fix offline signing: redeemPubkey was missing

283
ThomasV 11 years ago
parent
commit
367b11681b
  1. 1
      lib/transaction.py
  2. 1
      lib/wallet.py

1
lib/transaction.py

@ -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')

1
lib/wallet.py

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

Loading…
Cancel
Save