Fix PaymentPathFailed::payment_failed_permanently on blinded path fail
authorValentine Wallace <vwallace@protonmail.com>
Thu, 14 Sep 2023 15:46:02 +0000 (11:46 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Fri, 22 Sep 2023 19:56:23 +0000 (15:56 -0400)
commit9df61dc0b8d74f9323d0a25bf7b7ca2f9ab48f1c
treef5af51e7fa881cf74aa65021caa8045bf2c3dd37
parent5f5119fa3dd151276052827ea0b02fa20cf926e7
Fix PaymentPathFailed::payment_failed_permanently on blinded path fail

Previously this value would be incorrectly set to true because we wouldn't
account for blinded hops when determining if we were processing the last hop's
failure packet.
lightning/src/ln/onion_utils.rs