File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1817,7 +1817,8 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitor<Signer> {
1817
1817
/// to the `ChannelManager` having been persisted.
1818
1818
///
1819
1819
/// 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`).
1821
1822
pub ( crate ) fn get_all_current_outbound_htlcs ( & self ) -> HashMap < HTLCSource , ( HTLCOutputInCommitment , Option < PaymentPreimage > ) > {
1822
1823
let mut res = HashMap :: new ( ) ;
1823
1824
// Just examine the available counterparty commitment transactions. See docs on
@@ -1844,7 +1845,8 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitor<Signer> {
1844
1845
res
1845
1846
}
1846
1847
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.
1848
1850
/// This is used to reconstruct pending outbound payments on restart in the ChannelManager.
1849
1851
pub ( crate ) fn get_pending_or_resolved_outbound_htlcs ( & self ) -> HashMap < HTLCSource , ( HTLCOutputInCommitment , Option < PaymentPreimage > ) > {
1850
1852
let us = self . inner . lock ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments