@@ -2680,7 +2680,7 @@ pub struct ChannelManager<
2680
2680
/// See `PendingOutboundPayment` documentation for more info.
2681
2681
///
2682
2682
/// See `ChannelManager` struct-level documentation for lock order requirements.
2683
- pending_outbound_payments: OutboundPayments,
2683
+ pending_outbound_payments: OutboundPayments<L> ,
2684
2684
2685
2685
/// SCID/SCID Alias -> forward infos. Key of 0 means payments received.
2686
2686
///
@@ -3893,7 +3893,7 @@ where
3893
3893
best_block: RwLock::new(params.best_block),
3894
3894
3895
3895
outbound_scid_aliases: Mutex::new(new_hash_set()),
3896
- pending_outbound_payments: OutboundPayments::new(new_hash_map()),
3896
+ pending_outbound_payments: OutboundPayments::new(new_hash_map(), logger.clone() ),
3897
3897
forward_htlcs: Mutex::new(new_hash_map()),
3898
3898
decode_update_add_htlcs: Mutex::new(new_hash_map()),
3899
3899
claimable_payments: Mutex::new(ClaimablePayments { claimable_payments: new_hash_map(), pending_claiming_payments: new_hash_map() }),
@@ -5166,7 +5166,7 @@ where
5166
5166
self.pending_outbound_payments
5167
5167
.send_payment(payment_hash, recipient_onion, payment_id, Retry::Attempts(0),
5168
5168
route_params, &&router, self.list_usable_channels(), || self.compute_inflight_htlcs(),
5169
- &self.entropy_source, &self.node_signer, best_block_height, &self.logger,
5169
+ &self.entropy_source, &self.node_signer, best_block_height,
5170
5170
&self.pending_events, |args| self.send_payment_along_path(args))
5171
5171
}
5172
5172
@@ -5225,7 +5225,6 @@ where
5225
5225
&self.entropy_source,
5226
5226
&self.node_signer,
5227
5227
best_block_height,
5228
- &self.logger,
5229
5228
&self.pending_events,
5230
5229
|args| self.send_payment_along_path(args),
5231
5230
)
@@ -5324,7 +5323,6 @@ where
5324
5323
&self.entropy_source,
5325
5324
&self.node_signer,
5326
5325
best_block_height,
5327
- &self.logger,
5328
5326
&self.pending_events,
5329
5327
|args| self.send_payment_along_path(args),
5330
5328
)
@@ -5394,7 +5392,6 @@ where
5394
5392
&self,
5395
5393
&self.secp_ctx,
5396
5394
best_block_height,
5397
- &self.logger,
5398
5395
&self.pending_events,
5399
5396
|args| self.send_payment_along_path(args),
5400
5397
)
@@ -5515,7 +5512,6 @@ where
5515
5512
&self,
5516
5513
&self.secp_ctx,
5517
5514
best_block_height,
5518
- &self.logger,
5519
5515
&self.pending_events,
5520
5516
|args| self.send_payment_along_path(args),
5521
5517
);
@@ -5615,7 +5611,6 @@ where
5615
5611
&self.entropy_source,
5616
5612
&self.node_signer,
5617
5613
best_block_height,
5618
- &self.logger,
5619
5614
&self.pending_events,
5620
5615
|args| self.send_payment_along_path(args),
5621
5616
)
@@ -6772,7 +6767,6 @@ where
6772
6767
&self.node_signer,
6773
6768
best_block_height,
6774
6769
&self.pending_events,
6775
- &self.logger,
6776
6770
|args| self.send_payment_along_path(args),
6777
6771
);
6778
6772
if needs_persist {
@@ -8156,7 +8150,6 @@ where
8156
8150
self.probing_cookie_secret,
8157
8151
&self.secp_ctx,
8158
8152
&self.pending_events,
8159
- &self.logger,
8160
8153
&mut from_monitor_update_completion,
8161
8154
);
8162
8155
if let Some(update) = from_monitor_update_completion {
@@ -8838,7 +8831,6 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
8838
8831
from_onchain,
8839
8832
&mut ev_completion_action,
8840
8833
&self.pending_events,
8841
- &self.logger,
8842
8834
);
8843
8835
// If an event was generated, `claim_htlc` set `ev_completion_action` to None, if
8844
8836
// not, we should go ahead and run it now (as the claim was duplicative), at least
@@ -16552,7 +16544,8 @@ where
16552
16544
}
16553
16545
pending_outbound_payments = Some(outbounds);
16554
16546
}
16555
- let pending_outbounds = OutboundPayments::new(pending_outbound_payments.unwrap());
16547
+ let pending_outbounds =
16548
+ OutboundPayments::new(pending_outbound_payments.unwrap(), args.logger.clone());
16556
16549
16557
16550
for (peer_pubkey, peer_storage) in peer_storage_dir {
16558
16551
if let Some(peer_state) = per_peer_state.get_mut(&peer_pubkey) {
@@ -16858,7 +16851,6 @@ where
16858
16851
session_priv_bytes,
16859
16852
&path,
16860
16853
best_block_height,
16861
- logger,
16862
16854
);
16863
16855
}
16864
16856
}
@@ -16958,7 +16950,6 @@ where
16958
16950
true,
16959
16951
&mut compl_action,
16960
16952
&pending_events,
16961
- &&logger,
16962
16953
);
16963
16954
// If the completion action was not consumed, then there was no
16964
16955
// payment to claim, and we need to tell the `ChannelMonitor`
0 commit comments