Skip to content

Commit

Permalink
Add internal docs for ChannelMonitor::payment_preimages
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Apr 22, 2022
1 parent 2f4d4b3 commit 3c8c013
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lightning/src/chain/channelmonitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 which 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
Expand Down

0 comments on commit 3c8c013

Please sign in to comment.