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
Lightning invoices allow for zero or more multi-hop route hints. Update
get_route's interface to accept such hints, although only the last hop
from each is used for the time being.
Requires converting from lightning-invoice's RouteHint abstraction to
the wrapped RouteHintHop vector.
let route = matchget_route(&our_id,&net_graph_msg_handler.network_graph.read().unwrap(),&get_pubkey!(),None,None,&Vec::new(), value,42,Arc::clone(&logger)){
427
+
let route = matchget_route(&our_id,&net_graph_msg_handler.network_graph.read().unwrap(),&get_pubkey!(),None,None,Vec::new(), value,42,Arc::clone(&logger)){
let net_graph_msg_handler = &origin_node.net_graph_msg_handler;
1182
1182
let logger = test_utils::TestLogger::new();
1183
-
let route = get_route(&origin_node.node.get_our_node_id(),&net_graph_msg_handler.network_graph.read().unwrap(),&expected_route.last().unwrap().node.get_our_node_id(),Some(InvoiceFeatures::known()),None,&Vec::new(), recv_value,TEST_FINAL_CLTV,&logger).unwrap();
1183
+
let route = get_route(&origin_node.node.get_our_node_id(),&net_graph_msg_handler.network_graph.read().unwrap(),&expected_route.last().unwrap().node.get_our_node_id(),Some(InvoiceFeatures::known()),None,Vec::new(), recv_value,TEST_FINAL_CLTV,&logger).unwrap();
let net_graph_msg_handler = &origin_node.net_graph_msg_handler;
1196
-
let route = get_route(&origin_node.node.get_our_node_id(),&net_graph_msg_handler.network_graph.read().unwrap(),&expected_route.last().unwrap().node.get_our_node_id(),Some(InvoiceFeatures::known()),None,&Vec::new(), recv_value,TEST_FINAL_CLTV,&logger).unwrap();
1196
+
let route = get_route(&origin_node.node.get_our_node_id(),&net_graph_msg_handler.network_graph.read().unwrap(),&expected_route.last().unwrap().node.get_our_node_id(),Some(InvoiceFeatures::known()),None,Vec::new(), recv_value,TEST_FINAL_CLTV,&logger).unwrap();
0 commit comments