Fix blinded recipient fail on onion decode failure
authorValentine Wallace <vwallace@protonmail.com>
Tue, 24 Oct 2023 18:13:13 +0000 (14:13 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Tue, 12 Dec 2023 23:38:59 +0000 (18:38 -0500)
commit52f28e63e8d8ee8cd68ddf8aeacb401a47f0191d
treef9607ed96ca5e8c0319f6640045911eb84350bca
parentfbe4bf1cdd8ffc4d8adc5a84a49bfc9f80e5d67d
Fix blinded recipient fail on onion decode failure

If a recipient behind a multihop blinded path fails to decode their onion
payload, they should fail backwards with 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