1
0

separate mktx and sendtx

This commit is contained in:
ThomasV
2011-11-16 17:16:36 +03:00
parent 8687c63226
commit 321970c7a9
2 changed files with 41 additions and 27 deletions

View File

@@ -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("")