tchange semantics of before_send hook - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit b64fef53dcd2f91e8572f047da2ad93cd736c866
DIR parent 5331fc1a246e6a6441e9c827d12a587e5605d7ef
HTML Author: ThomasV <thomasv@gitorious>
Date: Thu, 13 Nov 2014 12:36:37 +0100
change semantics of before_send hook
Diffstat:
M gui/qt/main_window.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
t@@ -1082,11 +1082,12 @@ class ElectrumWindow(QMainWindow):
def do_send(self):
+ if not run_hook('before_send'):
+ return
r = self.read_send_tab()
if not r:
return
outputs, fee, label, coins = r
- run_hook('before_send')
try:
tx = self.wallet.make_unsigned_transaction(outputs, fee, None, coins = coins)
if not tx: