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
Use Default::default() to construct () as a test scoring param
In bindings, we can't use unbounded generic types, and thus have to
rip out the `ScoreParams` and replace them with static
`ProbabilisticScoringFeeParams` universally. To make this easier,
using `Default::default()` everywhere allows the type to change out
from under the test without the test needing to change.
let payment_preimage = send_along_route(&nodes[0], route, &[&nodes[1]], 3_000_000).0;
7494
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();
7495
7495
let route_params = RouteParameters::from_payment_params_and_value(payment_params, 3_000_000);
7496
7496
let route = get_route(&nodes[1].node.get_our_node_id(), &route_params, &nodes[1].network_graph.read_only(), None,
let payment_params_1 = PaymentParameters::from_node_id(nodes[1].node.get_our_node_id(),TEST_FINAL_CLTV).with_bolt11_features(nodes[1].node.invoice_features()).unwrap();
316
316
let route_params = RouteParameters::from_payment_params_and_value(payment_params_1,100_000);
317
317
let route_1 = get_route(&nodes[0].node.get_our_node_id(),&route_params,
0 commit comments