Merge pull request #3810 from SomberNight/conflicting_txns
conflicting transactions
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user