sellback TX sequence can be whatever the market maker wishes

This commit is contained in:
conduition
2024-03-10 16:37:34 +00:00
parent a34146cbdd
commit 50ecb1be9d

View File

@@ -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,