]> git.bitcoin.ninja Git - rust-lightning/commit
Fix phantom malformed onion error packet
authorValentine Wallace <vwallace@protonmail.com>
Fri, 25 Feb 2022 03:19:20 +0000 (22:19 -0500)
committerValentine Wallace <vwallace@protonmail.com>
Fri, 25 Feb 2022 03:33:02 +0000 (22:33 -0500)
commit3faea334389a2cf92b2122a8aa464d63de21ca70
tree7540aa06f31df7ca6212d350afc5e0520e47e850
parentf1aba795217496db6b7e2418fb2edcbc35b71ad2
Fix phantom malformed onion error packet

Ensure we fail back phantom malformed payments with an update_fail_htlc s.t.
the error contains the sha256 of the onion, per LN protocol.
lightning/src/ln/channelmanager.rs
lightning/src/ln/onion_route_tests.rs