change semantics of before_send hook
This commit is contained in:
parent
5331fc1a24
commit
b64fef53dc
|
@ -1082,11 +1082,12 @@ class ElectrumWindow(QMainWindow):
|
||||||
|
|
||||||
|
|
||||||
def do_send(self):
|
def do_send(self):
|
||||||
|
if not run_hook('before_send'):
|
||||||
|
return
|
||||||
r = self.read_send_tab()
|
r = self.read_send_tab()
|
||||||
if not r:
|
if not r:
|
||||||
return
|
return
|
||||||
outputs, fee, label, coins = r
|
outputs, fee, label, coins = r
|
||||||
run_hook('before_send')
|
|
||||||
try:
|
try:
|
||||||
tx = self.wallet.make_unsigned_transaction(outputs, fee, None, coins = coins)
|
tx = self.wallet.make_unsigned_transaction(outputs, fee, None, coins = coins)
|
||||||
if not tx:
|
if not tx:
|
||||||
|
|
Loading…
Reference in New Issue