Skip to content

Commit 019fb85

Browse files
committed
f fix test case
1 parent dbb7be0 commit 019fb85

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning/src/routing/router.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2128,6 +2128,8 @@ where L::Target: Logger {
21282128
.map(|(_, path)| {
21292129
match &path.introduction_node {
21302130
IntroductionNode::NodeId(pubkey) => {
2131+
// Note that this will only return `Some` if the `pubkey` is somehow known to
2132+
// us (i.e. a channel counterparty or in the network graph).
21312133
node_counters.node_counter_from_id(&NodeId::from_pubkey(&pubkey))
21322134
},
21332135
IntroductionNode::DirectedShortChannelId(direction, scid) => {
@@ -7710,7 +7712,7 @@ mod tests {
77107712
};
77117713

77127714
let mut invalid_blinded_path_2 = invalid_blinded_path.clone();
7713-
invalid_blinded_path_2.introduction_node = IntroductionNode::NodeId(ln_test_utils::pubkey(45));
7715+
invalid_blinded_path_2.introduction_node = IntroductionNode::NodeId(nodes[3]);
77147716
let payment_params = PaymentParameters::blinded(vec![
77157717
(blinded_payinfo.clone(), invalid_blinded_path.clone()),
77167718
(blinded_payinfo.clone(), invalid_blinded_path_2)]);

0 commit comments

Comments
 (0)