electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 6ecb9774619f871e41ecc1183a4528bcafc1f0a1
parent e55f27cdd7202a6f4d1230caeb14edf3ecb51741
Author: ThomasV <thomasv@gitorious>
Date:   Mon, 10 Mar 2014 16:05:54 +0100

add password to sign hook

Diffstat:
Mlib/wallet.py | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 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):