]> git.bitcoin.ninja Git - rust-lightning/commit
Fix blinded recipient fail on receive reqs violation
authorValentine Wallace <vwallace@protonmail.com>
Tue, 24 Oct 2023 20:45:24 +0000 (16:45 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Tue, 12 Dec 2023 23:38:59 +0000 (18:38 -0500)
commiteca4dc0799889432bfd2a65d763074f38000ffce
tree38171a2dd2e95f8c0d44c1eb9c9992ee540f5ae4
parent52f28e63e8d8ee8cd68ddf8aeacb401a47f0191d
Fix blinded recipient fail on receive reqs violation

If a blinded HTLC does not satisfy the receiver's requirements, e.g. bad CLTV
or amount, 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