]> git.bitcoin.ninja Git - rust-lightning/commit
Test failing phantom payments
authorValentine Wallace <vwallace@protonmail.com>
Tue, 22 Feb 2022 17:17:47 +0000 (12:17 -0500)
committerValentine Wallace <vwallace@protonmail.com>
Wed, 23 Feb 2022 21:11:31 +0000 (16:11 -0500)
commitedba328859469313e42f1d75e5be5eaa7d0fb543
treec537afc505db02715f221ad2902a0c334dd3bc6a
parent1f6700c72d8b23d53b3d2866993e3d39dc1905a3
Test failing phantom payments

Also fix a bug where we were failing back phantom payments with the wrong scid, causing
them to never actually be failed backwards.

Finally, drop some unnecessary panics when reading OnionHopData objects. This also enables
one of the phantom failure tests because we can construct OnionHopDatas with invalid
amounts
lightning/src/ln/channelmanager.rs
lightning/src/ln/msgs.rs
lightning/src/ln/onion_route_tests.rs