Skip to content

Commit 4348e49

Browse files
committed
f docs
1 parent f5be6b4 commit 4348e49

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,7 +1847,11 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitor<Signer> {
18471847

18481848
/// Gets the set of outbound HTLCs which are pending resolution in this channel or which were
18491849
/// resolved with a preimage from our counterparty.
1850+
///
18501851
/// This is used to reconstruct pending outbound payments on restart in the ChannelManager.
1852+
///
1853+
/// Currently, the preimage is unused, however if it is present in the relevant internal state
1854+
/// an HTLC is always included even if it has been resolved.
18511855
pub(crate) fn get_pending_or_resolved_outbound_htlcs(&self) -> HashMap<HTLCSource, (HTLCOutputInCommitment, Option<PaymentPreimage>)> {
18521856
let us = self.inner.lock().unwrap();
18531857
// We're only concerned with the confirmation count of HTLC transactions, and don't

0 commit comments

Comments
 (0)