From 50ecb1be9db9b39fbaef671ce6f66356ab68bbe2 Mon Sep 17 00:00:00 2001 From: conduition Date: Sun, 10 Mar 2024 16:37:34 +0000 Subject: [PATCH] sellback TX sequence can be whatever the market maker wishes --- src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 89ffcf2..9d6cfa8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -861,8 +861,12 @@ impl SignedContract { } // Confirm we're signing the correct input - let (expected_input, expected_prevout) = + let (mut expected_input, expected_prevout) = self.split_sellback_tx_input_and_prevout(win_cond)?; + + // The caller can use whatever sequence they want. + expected_input.sequence = sellback_tx.input.get(input_index).ok_or(Error)?.sequence; + check_input_matches_expected( sellback_tx, prevouts,