Skip to content

Commit c9d7f16

Browse files
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.
1 parent a9992fd commit c9d7f16

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning/src/ln/onion_utils.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,9 @@ pub(super) fn process_onion_failure<T: secp256k1::Signing, L: Deref>(
474474
// Got an error from within a blinded route.
475475
error_code_ret = Some(BADONION | PERM | 24); // invalid_onion_blinding
476476
error_packet_ret = Some(vec![0; 32]);
477-
is_from_final_node = false;
477+
res = Some(FailureLearnings {
478+
network_update: None, short_channel_id: None, recipient_rejected: false
479+
});
478480
return
479481
},
480482
};

0 commit comments

Comments
 (0)