]> git.bitcoin.ninja Git - rust-lightning/commit
Fix blinded recipient fail on Channel error
authorValentine Wallace <vwallace@protonmail.com>
Tue, 24 Oct 2023 23:17:29 +0000 (19:17 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Tue, 12 Dec 2023 23:38:59 +0000 (18:38 -0500)
commit85d3cb802c21c72b293db9eab45edf481548d697
tree7c9918b1d8c2b919a59b2735f6da48fd5281a0d4
parenteca4dc0799889432bfd2a65d763074f38000ffce
Fix blinded recipient fail on Channel error

If a blinded HTLC errors when added to a Channel, such as if the recipient has
already sent a shutdown message, they should malformed-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/channelmanager.rs