rust-lightning/lightning
Matt Corallo 5eb0a34ca4 Set correct counterparty_spendable_height on c.p. revoked HTLCs
If the counterparty broadcasts a revoked transaction with offered
HTLCs, the output is not immediately pinnable as the counterparty
cannot claim the HTLC until the CLTV expires and they use an
HTLC-Timeout path.

Here we fix the `counterparty_spendable_height` value we set on
counterparty revoked HTLC claims to match reality. Note that
because we still consider these outputs `Pinnable` the value is
not used. In the next commit we'll start making them `Unpinnable`
which will actually change behavior.

Note that when upgrading we have to wipe the
`counterparty_spendable_height` value for non-offered HTLCs as
otherwise we'd consider them `Unpinnable` when they are, in fact,
`Pinnable`.
2025-01-28 20:39:08 +00:00
..
src Set correct counterparty_spendable_height on c.p. revoked HTLCs 2025-01-28 20:39:08 +00:00
Cargo.toml Drop log-limiting features 2024-12-03 17:26:49 +01:00