Adapt Channel::fail_htlc for failing with malformed OR update_fail_htlc.
authorValentine Wallace <vwallace@protonmail.com>
Mon, 4 Dec 2023 20:26:30 +0000 (15:26 -0500)
committerValentine Wallace <vwallace@protonmail.com>
Tue, 12 Dec 2023 23:38:58 +0000 (18:38 -0500)
commit846be8147fcf2a7a4802c1ae8e43483cdfc21333
tree20fcbdbfcd968e004af94bf5e47ea6a46d9a4d6d
parent4ecf3f46dfd56e26d2bb3952d4c4ca3ef92f9221
Adapt Channel::fail_htlc for failing with malformed OR update_fail_htlc.

Useful for failing blinded payments back with malformed, and will also be
useful in the future when we move onion decoding into
process_pending_htlc_forwards, after which Channel::fail_htlc will be used for
all malformed htlcs.
lightning/src/ln/channel.rs