Merge pull request #2917 from jkczyz/2024-02-refund-unsupported-chain
[rust-lightning] / lightning / src / ln / offers_tests.rs
index 63e73975b940a8dba323db48d518028bc728f85f..e75bd2c70e1e9c3d6b68945fa0ea424a694d4f7d 100644 (file)
@@ -146,9 +146,9 @@ fn route_bolt12_payment<'a, 'b, 'c>(
        // invoice contains the payment_hash but it was encrypted inside an onion message.
        let amount_msats = invoice.amount_msats();
        let payment_hash = invoice.payment_hash();
-       do_pass_along_path(
-               node, path, amount_msats, payment_hash, None, ev, false, false, None, false
-       );
+       let args = PassAlongPathArgs::new(node, path, amount_msats, payment_hash, ev)
+               .without_clearing_recipient_events();
+       do_pass_along_path(args);
 }
 
 fn claim_bolt12_payment<'a, 'b, 'c>(node: &Node<'a, 'b, 'c>, path: &[&Node<'a, 'b, 'c>]) {