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
Add a user_payment_id to get_payment_secret+PaymentReceived
This allows users to store metadata about an invoice at
invoice-generation time and then index into that storage with a
general-purpose id when they call `get_payment_secret`. They will
then be provided the same index when the payment has been received.
let net_graph_msg_handler = &nodes[1].net_graph_msg_handler;
1471
1471
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(),Some(InvoiceFeatures::known()),None,&Vec::new(),800_000,TEST_FINAL_CLTV,&logger).unwrap();
1472
-
let node_a_payment_secret = nodes[0].node.get_payment_secret(payment_hash,None,1008).unwrap();
1472
+
let node_a_payment_secret = nodes[0].node.get_payment_secret(payment_hash,None,1008,0).unwrap();
@@ -5306,30 +5306,30 @@ fn do_test_fail_backwards_unrevoked_remote_announce(deliver_last_raa: bool, anno
5306
5306
let our_node_id = &nodes[1].node.get_our_node_id();
5307
5307
let route = get_route(our_node_id,&net_graph_msg_handler.network_graph.read().unwrap(),&nodes[5].node.get_our_node_id(),Some(InvoiceFeatures::known()),None,&Vec::new(), ds_dust_limit*1000,TEST_FINAL_CLTV,&logger).unwrap();
let route = get_route(our_node_id,&net_graph_msg_handler.network_graph.read().unwrap(),&nodes[5].node.get_our_node_id(),Some(InvoiceFeatures::known()),None,&Vec::new(),1000000,TEST_FINAL_CLTV,&logger).unwrap();
let route = get_route(our_node_id,&net_graph_msg_handler.network_graph.read().unwrap(),&nodes[5].node.get_our_node_id(),Some(InvoiceFeatures::known()),None,&Vec::new(), ds_dust_limit*1000,TEST_FINAL_CLTV,&logger).unwrap();
let route = get_route(our_node_id,&net_graph_msg_handler.network_graph.read().unwrap(),&nodes[5].node.get_our_node_id(),Some(InvoiceFeatures::known()),None,&Vec::new(),1000000,TEST_FINAL_CLTV,&logger).unwrap();
0 commit comments