From 578a83fa30cb9368d50c9c9fb84001a4a6e9354b Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 27 Aug 2015 08:22:02 +0200 Subject: [PATCH] show error message raised during sign_transaction. see issue #1422 --- lib/wallet.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/wallet.py b/lib/wallet.py index a927d0e0f..bf6e6c89d 100644 --- 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