]> git.bitcoin.ninja Git - rust-lightning/commit
Set correct `counterparty_spendable_height` for outb local HTLCs
authorMatt Corallo <git@bluematt.me>
Wed, 18 Sep 2024 18:20:46 +0000 (18:20 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 18 Oct 2024 16:23:27 +0000 (16:23 +0000)
commit6ae33dc1e09e3305d2e3a12d81b398a2a9c23d23
tree20939d27b3058631aed1378bfcc35099feb45441
parentd557334e3106915efea84359fcd4238df1378706
Set correct `counterparty_spendable_height` for outb local HTLCs

For outbound HTLCs, the counterparty can spend the output
immediately. This fixes the `counterparty_spendable_height` in the
`PackageTemplate` claiming outbound HTLCs on local commitment
transactions, which was previously spuriously set to the HTLC
timeout (at which point *we* can claim the HTLC).
lightning/src/chain/channelmonitor.rs