From: Valentine Wallace Date: Thu, 14 Sep 2023 15:41:35 +0000 (-0400) Subject: Correct DecodedOnionFailure when processing we-are-intro-node path X-Git-Tag: v0.0.117-alpha2~8^2~2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=5f5119fa3dd151276052827ea0b02fa20cf926e7;p=rust-lightning 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. --- 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 }, };