Skip to content

Commit 6dba566

Browse files
committed
f tweak fn names a bit
1 parent a7abb07 commit 6dba566

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1817,7 +1817,8 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitor<Signer> {
18171817
/// to the `ChannelManager` having been persisted.
18181818
///
18191819
/// This is similar to [`Self::get_pending_or_resolved_outbound_htlcs`] except it includes
1820-
/// HTLCs which were resolved by this `ChannelMonitor`.
1820+
/// HTLCs which were resolved on-chain (i.e. where the final HTLC resolution was done by an
1821+
/// event from this `ChannelMonitor`).
18211822
pub(crate) fn get_all_current_outbound_htlcs(&self) -> HashMap<HTLCSource, (HTLCOutputInCommitment, Option<PaymentPreimage>)> {
18221823
let mut res = HashMap::new();
18231824
// Just examine the available counterparty commitment transactions. See docs on
@@ -1844,7 +1845,8 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitor<Signer> {
18441845
res
18451846
}
18461847

1847-
/// Gets the set of outbound HTLCs which are pending resolution in this channel.
1848+
/// Gets the set of outbound HTLCs which are pending resolution in this channel or which were
1849+
/// resolved with a preimage by our counterparty.
18481850
/// This is used to reconstruct pending outbound payments on restart in the ChannelManager.
18491851
pub(crate) fn get_pending_or_resolved_outbound_htlcs(&self) -> HashMap<HTLCSource, (HTLCOutputInCommitment, Option<PaymentPreimage>)> {
18501852
let us = self.inner.lock().unwrap();

0 commit comments

Comments
 (0)