Skip to content

Commit f821c93

Browse files
committed
XXX breaks tests - Use local channel view for outbounds in test
1 parent 4369a0f commit f821c93

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning/src/ln/functional_test_utils.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,9 @@ macro_rules! get_route_and_payment_hash {
981981
let net_graph_msg_handler = &$send_node.net_graph_msg_handler;
982982
let route = get_route(&$send_node.node.get_our_node_id(),
983983
&net_graph_msg_handler.network_graph,
984-
&$recv_node.node.get_our_node_id(), None, None, &Vec::new(), $recv_value, TEST_FINAL_CLTV, $send_node.logger).unwrap();
984+
&$recv_node.node.get_our_node_id(), None,
985+
Some(&$send_node.node.list_usable_channels().iter().map(|a| a).collect::<Vec<_>>()),
986+
&Vec::new(), $recv_value, TEST_FINAL_CLTV, $send_node.logger).unwrap();
985987
(route, payment_hash, payment_preimage, payment_secret)
986988
}}
987989
}

0 commit comments

Comments
 (0)