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;
628
628
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;
717
717
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;
768
768
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;
777
777
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;
869
869
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;
896
896
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;
945
945
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;
1345
1345
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;
1441
1441
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;
1515
1515
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;
1540
1540
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;
1620
1620
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;
1705
1705
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;
1768
1768
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();
@@ -1923,8 +1923,7 @@ fn test_path_paused_mpp() {
1923
1923
let chan_4_id = create_announced_chan_between_nodes(&nodes,2,3,InitFeatures::known(),InitFeatures::known()).0.contents.short_channel_id;
0 commit comments