1
0

Merge pull request #3810 from SomberNight/conflicting_txns

conflicting transactions
This commit is contained in:
ThomasV
2018-02-06 06:16:19 +01:00
committed by GitHub
4 changed files with 115 additions and 30 deletions

View File

@@ -179,10 +179,13 @@ class TxDialog(QDialog, MessageBoxMixin):
self.main_window.sign_tx(self.tx, sign_done)
def save(self):
self.wallet.add_transaction(self.tx.txid(), self.tx)
if not self.wallet.add_transaction(self.tx.txid(), self.tx):
self.show_error(_("Transaction could not be saved. It conflicts with current history."))
return
self.wallet.save_transactions(write=True)
self.main_window.history_list.update()
# need to update at least: history_list, utxo_list, address_list
self.main_window.need_update.set()
self.save_button.setDisabled(True)
self.show_message(_("Transaction saved successfully"))