]> git.bitcoin.ninja Git - rust-lightning/commit
Set correct `counterparty_spendable_height` for outb local HTLCs 2024-09-cleanup-package
authorMatt Corallo <git@bluematt.me>
Wed, 18 Sep 2024 18:20:46 +0000 (18:20 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 15 Oct 2024 15:43:40 +0000 (15:43 +0000)
commitfac44b884a136d93b05d730786684c767aa5328f
treece20d68c61747db1f55279e949df449cd90e7783
parent4990215e25a9b7e1f0232baed811376bbe93d1db
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