keep the same locktime
We don't want the txid to change because the new transaction has a new random locktime.
This commit is contained in:
@@ -89,6 +89,7 @@ class TimelockRecoveryContext:
|
||||
outputs=alert_tx_outputs,
|
||||
fee_policy=fee_policy,
|
||||
is_sweep=False,
|
||||
locktime=self.alert_tx.locktime if self.alert_tx else None,
|
||||
)
|
||||
|
||||
def _alert_tx_output(self) -> Tuple[int, 'TxOutput']:
|
||||
@@ -122,6 +123,7 @@ class TimelockRecoveryContext:
|
||||
outputs=[output for output in self.outputs if output.value != 0],
|
||||
fee_policy=fee_policy,
|
||||
is_sweep=False,
|
||||
locktime=self.recovery_tx.locktime if self.recovery_tx else None,
|
||||
)
|
||||
|
||||
def add_input_info(self):
|
||||
@@ -143,6 +145,7 @@ class TimelockRecoveryContext:
|
||||
],
|
||||
fee_policy=fee_policy,
|
||||
is_sweep=False,
|
||||
locktime=self.cancellation_tx.locktime if self.cancellation_tx else None,
|
||||
)
|
||||
|
||||
class TimelockRecoveryPlugin(BasePlugin):
|
||||
|
||||
Reference in New Issue
Block a user