From 6ecb9774619f871e41ecc1183a4528bcafc1f0a1 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 10 Mar 2014 16:05:54 +0100 Subject: [PATCH] add password to sign hook --- lib/wallet.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/wallet.py b/lib/wallet.py index 3948a95a7..382a76207 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -767,7 +767,7 @@ class NewWallet: # add private keys from wallet self.add_keypairs_from_wallet(tx, keypairs, password) - self.sign_transaction(tx, keypairs) + self.sign_transaction(tx, keypairs, password) def sign_message(self, address, message, password): @@ -1295,7 +1295,7 @@ class NewWallet: keypairs = {} self.add_keypairs_from_wallet(tx, keypairs, password) if keypairs: - self.sign_transaction(tx, keypairs) + self.sign_transaction(tx, keypairs, password) return tx @@ -1313,9 +1313,9 @@ class NewWallet: txin['redeemPubkey'] = self.accounts[account].get_pubkey(*sequence) - def sign_transaction(self, tx, keypairs): + def sign_transaction(self, tx, keypairs, password): tx.sign(keypairs) - run_hook('sign_transaction', tx) + run_hook('sign_transaction', tx, password) def sendtx(self, tx):