Introduce `RouteParameters::max_total_routing_fee_msat`
[rust-lightning] / lightning / src / ln / payment_tests.rs
index 3def4e3629bf2fb98d227d9a95e5b1faf6493bc9..f74fab255e6e7916a2fb334c1a518c51bf23c8b1 100644 (file)
@@ -1337,7 +1337,7 @@ fn preflight_probes_yield_event_and_skip() {
        let mut payment_params = PaymentParameters::from_node_id(nodes[4].node.get_our_node_id(), TEST_FINAL_CLTV)
                .with_bolt11_features(invoice_features).unwrap();
 
-       let route_params = RouteParameters { payment_params, final_value_msat: 80_000_000 };
+       let route_params = RouteParameters::from_payment_params_and_value(payment_params, 80_000_000);
        let res = nodes[0].node.send_preflight_probes(route_params, None).unwrap();
 
        // We check that only one probe was sent, the other one was skipped due to limited liquidity.