You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pipe through PaymentSecrets in tests during payment hash creation
In order to reduce code movement in the next commit, this commit
simply tweaks get_payment_preimage_hash!() and related functions in
functional tests to return a payment secret. Further, we ensure
that we always call get_payment_preimage_hash!() with the node
which will ultimately receive the payment.
let net_graph_msg_handler = &nodes[0].net_graph_msg_handler;
627
627
let route = get_route(&nodes[0].node.get_our_node_id(),&net_graph_msg_handler.network_graph.read().unwrap(),&nodes[1].node.get_our_node_id(),None,None,&Vec::new(),1000000,TEST_FINAL_CLTV,&logger).unwrap();
let net_graph_msg_handler = &nodes[0].net_graph_msg_handler;
716
716
let route = get_route(&nodes[0].node.get_our_node_id(),&net_graph_msg_handler.network_graph.read().unwrap(),&nodes[1].node.get_our_node_id(),None,None,&Vec::new(),1000000,TEST_FINAL_CLTV,&logger).unwrap();
let net_graph_msg_handler = &nodes[0].net_graph_msg_handler;
767
767
let route = get_route(&nodes[0].node.get_our_node_id(),&net_graph_msg_handler.network_graph.read().unwrap(),&nodes[1].node.get_our_node_id(),None,None,&Vec::new(),1000000,TEST_FINAL_CLTV,&logger).unwrap();
let net_graph_msg_handler = &nodes[1].net_graph_msg_handler;
776
776
let route = get_route(&nodes[1].node.get_our_node_id(),&net_graph_msg_handler.network_graph.read().unwrap(),&nodes[0].node.get_our_node_id(),None,None,&Vec::new(),1000000,TEST_FINAL_CLTV,&logger).unwrap();
let net_graph_msg_handler = &nodes[0].net_graph_msg_handler;
868
868
let route = get_route(&nodes[0].node.get_our_node_id(),&net_graph_msg_handler.network_graph.read().unwrap(),&nodes[2].node.get_our_node_id(),None,None,&Vec::new(),1000000,TEST_FINAL_CLTV,&logger).unwrap();
let net_graph_msg_handler = &nodes[0].net_graph_msg_handler;
895
895
let route = get_route(&nodes[0].node.get_our_node_id(),&net_graph_msg_handler.network_graph.read().unwrap(),&nodes[2].node.get_our_node_id(),None,None,&Vec::new(),1000000,TEST_FINAL_CLTV,&logger).unwrap();
let net_graph_msg_handler = &nodes[2].net_graph_msg_handler;
944
944
let route = get_route(&nodes[2].node.get_our_node_id(),&net_graph_msg_handler.network_graph.read().unwrap(),&nodes[0].node.get_our_node_id(),None,None,&Vec::new(),1000000,TEST_FINAL_CLTV,&logger).unwrap();
let net_graph_msg_handler = &nodes[0].net_graph_msg_handler;
1344
1344
let route = get_route(&nodes[0].node.get_our_node_id(),&net_graph_msg_handler.network_graph.read().unwrap(),&nodes[1].node.get_our_node_id(),None,None,&Vec::new(),1000000,TEST_FINAL_CLTV,&logger).unwrap();
let net_graph_msg_handler = &nodes[0].net_graph_msg_handler;
1440
1440
let route = get_route(&nodes[0].node.get_our_node_id(),&net_graph_msg_handler.network_graph.read().unwrap(),&nodes[1].node.get_our_node_id(),None,None,&Vec::new(),1000000,TEST_FINAL_CLTV,&logger).unwrap();
let net_graph_msg_handler = &nodes[0].net_graph_msg_handler;
1514
1514
let route = get_route(&nodes[0].node.get_our_node_id(),&net_graph_msg_handler.network_graph.read().unwrap(),&nodes[1].node.get_our_node_id(),None,None,&Vec::new(),1000000,TEST_FINAL_CLTV,&logger).unwrap();
let net_graph_msg_handler = &nodes[0].net_graph_msg_handler;
1539
1539
let route = get_route(&nodes[0].node.get_our_node_id(),&net_graph_msg_handler.network_graph.read().unwrap(),&nodes[1].node.get_our_node_id(),None,None,&Vec::new(),1000000,TEST_FINAL_CLTV,&logger).unwrap();
let net_graph_msg_handler = &nodes[2].net_graph_msg_handler;
1619
1619
let route = get_route(&nodes[2].node.get_our_node_id(),&net_graph_msg_handler.network_graph.read().unwrap(),&nodes[0].node.get_our_node_id(),None,None,&Vec::new(),1000000,TEST_FINAL_CLTV,&logger).unwrap();
let net_graph_msg_handler = &nodes[2].net_graph_msg_handler;
1704
1704
let route = get_route(&nodes[2].node.get_our_node_id(),&net_graph_msg_handler.network_graph.read().unwrap(),&nodes[0].node.get_our_node_id(),None,None,&Vec::new(),1000000,TEST_FINAL_CLTV,&logger).unwrap();
let net_graph_msg_handler = &nodes[0].net_graph_msg_handler;
1767
1767
let route = get_route(&nodes[0].node.get_our_node_id(),&net_graph_msg_handler.network_graph.read().unwrap(),&nodes[1].node.get_our_node_id(),None,None,&Vec::new(),1000000,TEST_FINAL_CLTV,&logger).unwrap();
@@ -1922,8 +1922,7 @@ fn test_path_paused_mpp() {
1922
1922
let chan_4_id = create_announced_chan_between_nodes(&nodes,2,3,InitFeatures::known(),InitFeatures::known()).0.contents.short_channel_id;
0 commit comments