Add internal docs for ChannelMonitor::payment_preimages
[rust-lightning] / lightning / src / ln / channelmanager.rs
index 19d0b5773184e7f34303a02caaccb3e756c9774d..5a58958b413d7cc68c220a1b409a4f8dc2c6a51c 100644 (file)
@@ -414,7 +414,9 @@ pub(super) struct ChannelHolder<Signer: Sign> {
        /// guarantees are made about the existence of a channel with the short id here, nor the short
        /// ids in the PendingHTLCInfo!
        pub(super) forward_htlcs: HashMap<u64, Vec<HTLCForwardInfo>>,
-       /// Map from payment hash to any HTLCs which are to us and can be failed/claimed by the user.
+       /// Map from payment hash to the payment data and any HTLCs which are to us and can be
+       /// failed/claimed by the user.
+       ///
        /// Note that while this is held in the same mutex as the channels themselves, no consistency
        /// guarantees are made about the channels given here actually existing anymore by the time you
        /// go to read them!