From 5f5119fa3dd151276052827ea0b02fa20cf926e7 Mon Sep 17 00:00:00 2001 From: Valentine Wallace Date: Thu, 14 Sep 2023 11:41:35 -0400 Subject: [PATCH] Correct DecodedOnionFailure when processing we-are-intro-node path We don't support sending to paths where we are the intro node yet, but may as well set the failure correctly now. --- lightning/src/ln/onion_utils.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lightning/src/ln/onion_utils.rs b/lightning/src/ln/onion_utils.rs index d6bf117e8..4b5ccfe92 100644 --- a/lightning/src/ln/onion_utils.rs +++ b/lightning/src/ln/onion_utils.rs @@ -474,7 +474,9 @@ pub(super) fn process_onion_failure( // Got an error from within a blinded route. error_code_ret = Some(BADONION | PERM | 24); // invalid_onion_blinding error_packet_ret = Some(vec![0; 32]); - is_from_final_node = false; + res = Some(FailureLearnings { + network_update: None, short_channel_id: None, payment_failed_permanently: false + }); return }, }; -- 2.39.5