Pass ClaimAlongRouteArgs to do_claim_payment_along_route
[rust-lightning] / lightning / src / ln / monitor_tests.rs
index 83d22c4deea35583b54863367c9e75252aae97dc..90964a006ba18b6f3dd2a8195c0e23daa81d9857 100644 (file)
@@ -15,7 +15,8 @@ use crate::chain::transaction::OutPoint;
 use crate::chain::chaininterface::{LowerBoundedFeeEstimator, compute_feerate_sat_per_1000_weight};
 use crate::events::bump_transaction::{BumpTransactionEvent, WalletSource};
 use crate::events::{Event, MessageSendEvent, MessageSendEventsProvider, ClosureReason, HTLCDestination};
-use crate::ln::{channel, ChannelId};
+use crate::ln::channel;
+use crate::ln::types::ChannelId;
 use crate::ln::channelmanager::{BREAKDOWN_TIMEOUT, PaymentId, RecipientOnionFields};
 use crate::ln::msgs::ChannelMessageHandler;
 use crate::crypto::utils::sign;
@@ -2895,7 +2896,9 @@ fn test_event_replay_causing_monitor_replay() {
 
        let payment_preimage = route_payment(&nodes[0], &[&nodes[1]], 1_000_000).0;
 
-       do_claim_payment_along_route(&nodes[0], &[&[&nodes[1]]], false, payment_preimage);
+       do_claim_payment_along_route(
+               ClaimAlongRouteArgs::new(&nodes[0], &[&[&nodes[1]]], payment_preimage)
+       );
 
        // At this point the `PaymentSent` event has not been processed but the full commitment signed
        // dance has completed.