Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions lightning/src/ln/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8048,7 +8048,7 @@ where
ref onion_routing_packet,
skimmed_fee_msat,
blinding_point,
hold_htlc: _,
hold_htlc,
..
} => {
match self.send_htlc(
Expand All @@ -8060,6 +8060,7 @@ where
false,
skimmed_fee_msat,
blinding_point,
hold_htlc.is_some(),
fee_estimator,
logger,
) {
Expand Down Expand Up @@ -12022,6 +12023,8 @@ where
true,
skimmed_fee_msat,
blinding_point,
// This method is only called for forwarded HTLCs, which are never held at the next hop
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that we'll have to expose it when we do #4071.

false,
fee_estimator,
logger,
)
Expand Down Expand Up @@ -12052,7 +12055,7 @@ where
fn send_htlc<F: Deref, L: Deref>(
&mut self, amount_msat: u64, payment_hash: PaymentHash, cltv_expiry: u32,
source: HTLCSource, onion_routing_packet: msgs::OnionPacket, mut force_holding_cell: bool,
skimmed_fee_msat: Option<u64>, blinding_point: Option<PublicKey>,
skimmed_fee_msat: Option<u64>, blinding_point: Option<PublicKey>, hold_htlc: bool,
fee_estimator: &LowerBoundedFeeEstimator<F>, logger: &L,
) -> Result<bool, (LocalHTLCFailureReason, String)>
where
Expand Down Expand Up @@ -12134,7 +12137,7 @@ where
onion_routing_packet,
skimmed_fee_msat,
blinding_point,
hold_htlc: None,
hold_htlc: hold_htlc.then(|| ()),
});
return Ok(false);
}
Expand All @@ -12156,7 +12159,7 @@ where
blinding_point,
skimmed_fee_msat,
send_timestamp,
hold_htlc: None,
hold_htlc: hold_htlc.then(|| ()),
});
self.context.next_holder_htlc_id += 1;

Expand Down Expand Up @@ -12391,7 +12394,7 @@ where
pub fn send_htlc_and_commit<F: Deref, L: Deref>(
&mut self, amount_msat: u64, payment_hash: PaymentHash, cltv_expiry: u32,
source: HTLCSource, onion_routing_packet: msgs::OnionPacket, skimmed_fee_msat: Option<u64>,
fee_estimator: &LowerBoundedFeeEstimator<F>, logger: &L,
hold_htlc: bool, fee_estimator: &LowerBoundedFeeEstimator<F>, logger: &L,
) -> Result<Option<ChannelMonitorUpdate>, ChannelError>
where
F::Target: FeeEstimator,
Expand All @@ -12406,6 +12409,7 @@ where
false,
skimmed_fee_msat,
None,
hold_htlc,
fee_estimator,
logger,
);
Expand Down
1 change: 1 addition & 0 deletions lightning/src/ln/channelmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5098,6 +5098,7 @@ where
htlc_source,
onion_packet,
None,
false,
&self.fee_estimator,
&&logger,
);
Expand Down