Add internal docs for ChannelMonitor::payment_preimages
[rust-lightning] / lightning / src / chain / channelmonitor.rs
index fd66e585208b6b580e6f981d633fa8c0d94c028e..f0ee1c85937bd904862caa5845d93809653bc316 100644 (file)
@@ -655,6 +655,10 @@ pub(crate) struct ChannelMonitorImpl<Signer: Sign> {
        // deserialization
        current_holder_commitment_number: u64,
 
+       /// The set of payment hashes from inbound payments for which we know the preimage. Payment
+       /// preimages that are not included in any unrevoked local commitment transaction or unrevoked
+       /// remote commitment transactions are automatically removed when commitment transactions are
+       /// revoked.
        payment_preimages: HashMap<PaymentHash, PaymentPreimage>,
 
        // Note that `MonitorEvent`s MUST NOT be generated during update processing, only generated