Skip to content

Commit 0a10bbd

Browse files
committed
f rename queue_htlc
1 parent 5e86c30 commit 0a10bbd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lightning/src/ln/channel.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5494,12 +5494,11 @@ impl<Signer: Sign> Channel<Signer> {
54945494
/// commitment update.
54955495
///
54965496
/// `Err`s will only be [`ChannelError::Ignore`].
5497-
pub fn queue_htlc<L: Deref>(&mut self, amount_msat: u64, payment_hash: PaymentHash, cltv_expiry: u32, source: HTLCSource,
5497+
pub fn queue_add_htlc<L: Deref>(&mut self, amount_msat: u64, payment_hash: PaymentHash, cltv_expiry: u32, source: HTLCSource,
54985498
onion_routing_packet: msgs::OnionPacket, logger: &L)
54995499
-> Result<(), ChannelError> where L::Target: Logger {
55005500
self.send_htlc(amount_msat, payment_hash, cltv_expiry, source, onion_routing_packet, true, logger)
55015501
.map(|msg_opt| assert!(msg_opt.is_none(), "We forced holding cell?"))
5502-
55035502
}
55045503

55055504
/// Adds a pending outbound HTLC to this channel, note that you probably want

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3303,7 +3303,7 @@ impl<M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelManager<M, T, K, F
33033303
// Phantom payments are only PendingHTLCRouting::Receive.
33043304
phantom_shared_secret: None,
33053305
});
3306-
if let Err(e) = chan.get_mut().queue_htlc(outgoing_amt_msat,
3306+
if let Err(e) = chan.get_mut().queue_add_htlc(outgoing_amt_msat,
33073307
payment_hash, outgoing_cltv_value, htlc_source.clone(),
33083308
onion_packet, &self.logger)
33093309
{

0 commit comments

Comments
 (0)