Set up Channel::fail_htlc to be able to return update_malformed
authorValentine Wallace <vwallace@protonmail.com>
Thu, 26 Oct 2023 23:47:31 +0000 (19:47 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Tue, 12 Dec 2023 23:38:58 +0000 (18:38 -0500)
commit4ecf3f46dfd56e26d2bb3952d4c4ca3ef92f9221
tree36a8d679cb672888c2f81247af888611bae509d5
parentaf4d0df1bfcf1199772eb59fc8d4ab98798a69a4
Set up Channel::fail_htlc to be able to return update_malformed

Currently it returns only update_fail, but we'll want it to be able to return
update_malformed as well in upcoming commits. We'll use this for correctly
failing blinded received HTLCs backwards with malformed and
invalid_onion_blinding error per BOLT 4.
lightning/src/ln/channel.rs