SomberNight
4 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
2 changed files with
5 additions and
2 deletions
-
electrum/gui/qt/transaction_dialog.py
-
electrum/transaction.py
|
|
@ -875,7 +875,9 @@ class PreviewTxDialog(BaseTxDialog, TxEditor): |
|
|
|
assert self.tx |
|
|
|
self.finalized = True |
|
|
|
self.tx.set_rbf(self.rbf_cb.isChecked()) |
|
|
|
self.tx.locktime = self.locktime_e.get_locktime() |
|
|
|
locktime = self.locktime_e.get_locktime() |
|
|
|
if locktime is not None: |
|
|
|
self.tx.locktime = self.locktime_e.get_locktime() |
|
|
|
for widget in [self.fee_slider, self.fee_combo, self.feecontrol_fields, self.rbf_cb, |
|
|
|
self.locktime_setter_widget, self.locktime_e]: |
|
|
|
widget.setEnabled(False) |
|
|
|
|
|
@ -546,7 +546,8 @@ class Transaction: |
|
|
|
return self._locktime |
|
|
|
|
|
|
|
@locktime.setter |
|
|
|
def locktime(self, value): |
|
|
|
def locktime(self, value: int): |
|
|
|
assert isinstance(value, int), f"locktime must be int, not {value!r}" |
|
|
|
self._locktime = value |
|
|
|
self.invalidate_ser_cache() |
|
|
|
|
|
|
|