Skip to content

Commit 9624d9b

Browse files
committed
f - cleanup test payment params initialization
1 parent 03e3280 commit 9624d9b

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

lightning/src/ln/functional_tests.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ use crate::ln::{chan_utils, onion_utils};
2727
use crate::ln::chan_utils::{OFFERED_HTLC_SCRIPT_WEIGHT, htlc_success_tx_weight, htlc_timeout_tx_weight, HTLCOutputInCommitment};
2828
use crate::routing::gossip::{NetworkGraph, NetworkUpdate};
2929
use crate::routing::router::{Path, PaymentParameters, Route, RouteHop, RouteParameters, find_route, get_route};
30-
use crate::ln::features::{ChannelFeatures, NodeFeatures, InvoiceFeatures};
30+
use crate::ln::features::{ChannelFeatures, NodeFeatures};
3131
use crate::ln::msgs;
3232
use crate::ln::msgs::{ChannelMessageHandler, RoutingMessageHandler, ErrorAction};
3333
use crate::util::enforcing_trait_impls::EnforcingSigner;
@@ -8232,13 +8232,8 @@ fn do_test_mpp_keysend(accept_mpp_keysend: bool) {
82328232
let payer_pubkey = nodes[0].node.get_our_node_id();
82338233
let payee_pubkey = nodes[3].node.get_our_node_id();
82348234
let recv_value = 15_000_000;
8235-
let mut invoice_features = InvoiceFeatures::for_keysend(true);
8236-
invoice_features.set_basic_mpp_optional();
82378235
let route_params = RouteParameters {
8238-
payment_params: PaymentParameters::from_node_id(payee_pubkey, 40).with_bolt11_features(invoice_features).unwrap(),
8239-
// Approxiamating the amount to make the router use MPP is not reliable in
8240-
// case those thresholds change, but helpful to test where the router may
8241-
// block mpp keysend
8236+
payment_params: PaymentParameters::for_keysend(payee_pubkey, 40, true),
82428237
final_value_msat: recv_value,
82438238
};
82448239
let scorer = test_utils::TestScorer::new();

0 commit comments

Comments
 (0)