]> git.bitcoin.ninja Git - rust-lightning/commit
Provide inbound HTLC preimages to the `EcdsaChannelSigner` 2023-11-inbound-preimages
authorMatt Corallo <git@bluematt.me>
Tue, 28 Nov 2023 23:19:39 +0000 (23:19 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 4 Dec 2023 19:36:49 +0000 (19:36 +0000)
commit262072d816a3927b42e80eaf6ce1bccccdb8afd7
treec310eb90c19b42f654710313eededf92b0ce1c18
parent2659a2375eb819fe050f057b068c3e27f98a30f7
Provide inbound HTLC preimages to the `EcdsaChannelSigner`

The VLS signer has a desire to see preimages for resolved forwarded
HTLCs when they are first claimed by us, even if that claim was for
the inbound edge (where claiming strictly increases our balance).

Luckily, providing that information is rather trivial, which we do
here.

Fixes #2356
lightning/src/ln/channel.rs
lightning/src/ln/functional_tests.rs
lightning/src/sign/ecdsa.rs
lightning/src/sign/mod.rs
lightning/src/sign/taproot.rs
lightning/src/util/test_channel_signer.rs