Fix blinded recipient fail on malformed HTLC
authorValentine Wallace <vwallace@protonmail.com>
Mon, 16 Oct 2023 19:46:55 +0000 (15:46 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Tue, 12 Dec 2023 23:38:59 +0000 (18:38 -0500)
commitd99089e16a6e7c4744af5dda0750a7c7a17caba6
tree512f65918144de766b1b0b9e3075f742f46bf6de
parenta2b4813c1f9421e3074145bf0ffd67e8636692a6
Fix blinded recipient fail on malformed HTLC

If a blinded recipient to a multihop blinded path needs to fail back a
malformed HTLC, they should use error code INVALID_ONION_BLINDING and a zeroed
out onion hash per BOLT 4.
lightning/src/ln/blinded_payment_tests.rs
lightning/src/ln/onion_payment.rs