@@ -1865,7 +1865,7 @@ fn test_channel_reserve_holding_cell_htlcs() {
1865
1865
// attempt to send amt_msat > their_max_htlc_value_in_flight_msat
1866
1866
{
1867
1867
let payment_params = PaymentParameters::from_node_id(nodes[2].node.get_our_node_id(), TEST_FINAL_CLTV)
1868
- .with_bolt11_features(nodes[2].node.invoice_features ()).unwrap().with_max_channel_saturation_power_of_half(0);
1868
+ .with_bolt11_features(nodes[2].node.bolt11_invoice_features ()).unwrap().with_max_channel_saturation_power_of_half(0);
1869
1869
let (mut route, our_payment_hash, _, our_payment_secret) = get_route_and_payment_hash!(nodes[0], nodes[2], payment_params, recv_value_0);
1870
1870
route.paths[0].hops.last_mut().unwrap().fee_msat += 1;
1871
1871
assert!(route.paths[0].hops.iter().rev().skip(1).all(|h| h.fee_msat == feemsat));
@@ -1890,7 +1890,7 @@ fn test_channel_reserve_holding_cell_htlcs() {
1890
1890
}
1891
1891
1892
1892
let payment_params = PaymentParameters::from_node_id(nodes[2].node.get_our_node_id(), TEST_FINAL_CLTV)
1893
- .with_bolt11_features(nodes[2].node.invoice_features ()).unwrap().with_max_channel_saturation_power_of_half(0);
1893
+ .with_bolt11_features(nodes[2].node.bolt11_invoice_features ()).unwrap().with_max_channel_saturation_power_of_half(0);
1894
1894
let route = get_route!(nodes[0], payment_params, recv_value_0).unwrap();
1895
1895
let (payment_preimage, ..) = send_along_route(&nodes[0], route, &[&nodes[1], &nodes[2]], recv_value_0);
1896
1896
claim_payment(&nodes[0], &[&nodes[1], &nodes[2]], payment_preimage);
@@ -4990,7 +4990,7 @@ fn test_duplicate_payment_hash_one_failure_one_success() {
4990
4990
// script push size limit so that the below script length checks match
4991
4991
// ACCEPTED_HTLC_SCRIPT_WEIGHT.
4992
4992
let payment_params = PaymentParameters::from_node_id(nodes[3].node.get_our_node_id(), TEST_FINAL_CLTV - 40)
4993
- .with_bolt11_features(nodes[3].node.invoice_features ()).unwrap();
4993
+ .with_bolt11_features(nodes[3].node.bolt11_invoice_features ()).unwrap();
4994
4994
let (route, _, _, _) = get_route_and_payment_hash!(nodes[0], nodes[3], payment_params, 800_000);
4995
4995
send_along_route_with_secret(&nodes[0], route, &[&[&nodes[1], &nodes[2], &nodes[3]]], 800_000, duplicate_payment_hash, payment_secret);
4996
4996
@@ -6281,7 +6281,7 @@ fn test_update_add_htlc_bolt2_sender_cltv_expiry_too_high() {
6281
6281
let _chan = create_announced_chan_between_nodes_with_value(&nodes, 0, 1, 1000000, 0);
6282
6282
6283
6283
let payment_params = PaymentParameters::from_node_id(nodes[1].node.get_our_node_id(), 0)
6284
- .with_bolt11_features(nodes[1].node.invoice_features ()).unwrap();
6284
+ .with_bolt11_features(nodes[1].node.bolt11_invoice_features ()).unwrap();
6285
6285
let (mut route, our_payment_hash, _, our_payment_secret) = get_route_and_payment_hash!(nodes[0], nodes[1], payment_params, 100000000);
6286
6286
route.paths[0].hops.last_mut().unwrap().cltv_expiry_delta = 500000001;
6287
6287
unwrap_send_err!(nodes[0].node.send_payment_with_route(&route, our_payment_hash,
@@ -7227,8 +7227,8 @@ fn test_check_htlc_underpaying() {
7227
7227
7228
7228
let scorer = test_utils::TestScorer::new();
7229
7229
let random_seed_bytes = chanmon_cfgs[1].keys_manager.get_secure_random_bytes();
7230
- let payment_params = PaymentParameters::from_node_id(nodes[1].node.get_our_node_id(),
7231
- TEST_FINAL_CLTV) .with_bolt11_features(nodes[1].node.invoice_features ()).unwrap();
7230
+ let payment_params = PaymentParameters::from_node_id(nodes[1].node.get_our_node_id(), TEST_FINAL_CLTV)
7231
+ .with_bolt11_features(nodes[1].node.bolt11_invoice_features ()).unwrap();
7232
7232
let route_params = RouteParameters::from_payment_params_and_value(payment_params, 10_000);
7233
7233
let route = get_route(&nodes[0].node.get_our_node_id(), &route_params, &nodes[0].network_graph.read_only(),
7234
7234
None, nodes[0].logger, &scorer, &Default::default(), &random_seed_bytes).unwrap();
@@ -7380,7 +7380,7 @@ fn test_bump_penalty_txn_on_revoked_commitment() {
7380
7380
7381
7381
let payment_preimage = route_payment(&nodes[0], &vec!(&nodes[1])[..], 3000000).0;
7382
7382
let payment_params = PaymentParameters::from_node_id(nodes[0].node.get_our_node_id(), 30)
7383
- .with_bolt11_features(nodes[0].node.invoice_features ()).unwrap();
7383
+ .with_bolt11_features(nodes[0].node.bolt11_invoice_features ()).unwrap();
7384
7384
let (route,_, _, _) = get_route_and_payment_hash!(nodes[1], nodes[0], payment_params, 3000000);
7385
7385
send_along_route(&nodes[1], route, &vec!(&nodes[0])[..], 3000000);
7386
7386
@@ -7484,14 +7484,15 @@ fn test_bump_penalty_txn_on_revoked_htlcs() {
7484
7484
7485
7485
let chan = create_announced_chan_between_nodes_with_value(&nodes, 0, 1, 1000000, 59000000);
7486
7486
// Lock HTLC in both directions (using a slightly lower CLTV delay to provide timely RBF bumps)
7487
- let payment_params = PaymentParameters::from_node_id(nodes[1].node.get_our_node_id(), 50).with_bolt11_features(nodes[1].node.invoice_features ()).unwrap();
7487
+ let payment_params = PaymentParameters::from_node_id(nodes[1].node.get_our_node_id(), 50).with_bolt11_features(nodes[1].node.bolt11_invoice_features ()).unwrap();
7488
7488
let scorer = test_utils::TestScorer::new();
7489
7489
let random_seed_bytes = chanmon_cfgs[1].keys_manager.get_secure_random_bytes();
7490
7490
let route_params = RouteParameters::from_payment_params_and_value(payment_params, 3_000_000);
7491
7491
let route = get_route(&nodes[0].node.get_our_node_id(), &route_params, &nodes[0].network_graph.read_only(), None,
7492
7492
nodes[0].logger, &scorer, &Default::default(), &random_seed_bytes).unwrap();
7493
7493
let payment_preimage = send_along_route(&nodes[0], route, &[&nodes[1]], 3_000_000).0;
7494
- let payment_params = PaymentParameters::from_node_id(nodes[0].node.get_our_node_id(), 50).with_bolt11_features(nodes[0].node.invoice_features()).unwrap();
7494
+ let payment_params = PaymentParameters::from_node_id(nodes[0].node.get_our_node_id(), 50)
7495
+ .with_bolt11_features(nodes[0].node.bolt11_invoice_features()).unwrap();
7495
7496
let route_params = RouteParameters::from_payment_params_and_value(payment_params, 3_000_000);
7496
7497
let route = get_route(&nodes[1].node.get_our_node_id(), &route_params, &nodes[1].network_graph.read_only(), None,
7497
7498
nodes[0].logger, &scorer, &Default::default(), &random_seed_bytes).unwrap();
@@ -9394,7 +9395,7 @@ fn do_test_dup_htlc_second_rejected(test_for_second_fail_panic: bool) {
9394
9395
let _chan = create_announced_chan_between_nodes_with_value(&nodes, 0, 1, 100000, 10001);
9395
9396
9396
9397
let payment_params = PaymentParameters::from_node_id(nodes[1].node.get_our_node_id(), TEST_FINAL_CLTV)
9397
- .with_bolt11_features(nodes[1].node.invoice_features ()).unwrap();
9398
+ .with_bolt11_features(nodes[1].node.bolt11_invoice_features ()).unwrap();
9398
9399
let route = get_route!(nodes[0], payment_params, 10_000).unwrap();
9399
9400
9400
9401
let (our_payment_preimage, our_payment_hash, our_payment_secret) = get_payment_preimage_hash!(&nodes[1]);
@@ -9503,7 +9504,7 @@ fn test_inconsistent_mpp_params() {
9503
9504
let chan_2_3 =create_announced_chan_between_nodes_with_value(&nodes, 2, 3, 100_000, 0);
9504
9505
9505
9506
let payment_params = PaymentParameters::from_node_id(nodes[3].node.get_our_node_id(), TEST_FINAL_CLTV)
9506
- .with_bolt11_features(nodes[3].node.invoice_features ()).unwrap();
9507
+ .with_bolt11_features(nodes[3].node.bolt11_invoice_features ()).unwrap();
9507
9508
let mut route = get_route!(nodes[0], payment_params, 15_000_000).unwrap();
9508
9509
assert_eq!(route.paths.len(), 2);
9509
9510
route.paths.sort_by(|path_a, _| {
0 commit comments