1
0

TxEditor: move set_locktime

This commit is contained in:
ThomasV
2023-02-09 11:15:31 +01:00
parent 95433cd153
commit a740a8a004

View File

@@ -492,6 +492,13 @@ class TxEditor(WindowModalDialog):
else:
self.toggle_send_button(True)
def set_locktime(self):
if not self.tx:
return
locktime = self.locktime_e.get_locktime()
if locktime is not None:
self.tx.locktime = locktime
def _update_amount_label(self):
pass
@@ -560,13 +567,6 @@ class ConfirmTxDialog(TxEditor):
raise
self.tx.set_rbf(True)
def set_locktime(self):
if not self.tx:
return
locktime = self.locktime_e.get_locktime()
if locktime is not None:
self.tx.locktime = locktime
def have_enough_funds_assuming_zero_fees(self) -> bool:
# called in send_tab.py
try: