Use correct input sequence for HTLC claims from counterparty commitments
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Mon, 25 Sep 2023 23:57:04 +0000 (16:57 -0700)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Wed, 27 Sep 2023 18:49:57 +0000 (11:49 -0700)
commit3c837838006670f0e1a6c61608596f9d40e06059
treec23aa38444c9572d85f3d1c31988c1aac959c678
parent1ac53ed02bf26520d3b1a2c3c0e90c8691c83099
Use correct input sequence for HTLC claims from counterparty commitments

HTLC outputs, like the `to_remote` output, in commitment transactions
with anchor outputs also have an additional `1 CSV` constraint on the
counterparty. When spending such outputs, their corresponding input
needs to have their sequence set to 1. This was done for HTLC claims
from holder commitments, but unfortunately not for counterparty
commitments as we were lacking test coverage.
lightning/src/chain/package.rs
lightning/src/ln/monitor_tests.rs