change semantics of before_send hook
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user