electrum

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

commit 578a83fa30cb9368d50c9c9fb84001a4a6e9354b
parent 695aebaa803d720453478687116941ddc0fc0c17
Author: ThomasV <thomasv@gitorious>
Date:   Thu, 27 Aug 2015 08:22:02 +0200

show error message raised during sign_transaction. see issue #1422

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

diff --git a/lib/wallet.py b/lib/wallet.py @@ -1023,7 +1023,12 @@ class Abstract_Wallet(object): # Sign if keypairs: tx.sign(keypairs) + # Run hook, and raise if error + tx.error = None run_hook('sign_transaction', tx, password) + if tx.error: + raise BaseException(tx.error) + def sendtx(self, tx): # synchronous