separate mktx and sendtx
This commit is contained in:
@@ -556,8 +556,13 @@ class BitcoinGUI:
|
||||
|
||||
password = password_dialog() if self.wallet.use_encryption else None
|
||||
|
||||
status, msg = self.wallet.send( to_address, amount, label, password, True )
|
||||
status, tx = self.wallet.mktx( to_address, amount, label, password )
|
||||
self.wallet.new_session() # we created a new change address
|
||||
if not status:
|
||||
show_message(tx)
|
||||
return
|
||||
|
||||
status, msg = self.wallet.sendtx( tx )
|
||||
if status:
|
||||
show_message( "payment sent.\n" + msg )
|
||||
payto_entry.set_text("")
|
||||
|
||||
Reference in New Issue
Block a user