fix #4077
This commit is contained in:
@@ -182,8 +182,8 @@ class TxDialog(QDialog, MessageBoxMixin):
|
|||||||
if success:
|
if success:
|
||||||
self.prompt_if_unsaved = True
|
self.prompt_if_unsaved = True
|
||||||
self.saved = False
|
self.saved = False
|
||||||
self.save_button.setDisabled(False)
|
self.save_button.setDisabled(False)
|
||||||
self.save_button.setToolTip("")
|
self.save_button.setToolTip("")
|
||||||
self.update()
|
self.update()
|
||||||
self.main_window.pop_top_level_window(self)
|
self.main_window.pop_top_level_window(self)
|
||||||
|
|
||||||
|
|||||||
@@ -778,6 +778,9 @@ class Abstract_Wallet(PrintError):
|
|||||||
return conflicting_txns
|
return conflicting_txns
|
||||||
|
|
||||||
def add_transaction(self, tx_hash, tx):
|
def add_transaction(self, tx_hash, tx):
|
||||||
|
assert tx_hash, tx_hash
|
||||||
|
assert tx, tx
|
||||||
|
assert tx.is_complete()
|
||||||
# we need self.transaction_lock but get_tx_height will take self.lock
|
# we need self.transaction_lock but get_tx_height will take self.lock
|
||||||
# so we need to take that too here, to enforce order of locks
|
# so we need to take that too here, to enforce order of locks
|
||||||
with self.lock, self.transaction_lock:
|
with self.lock, self.transaction_lock:
|
||||||
|
|||||||
Reference in New Issue
Block a user