File tree 3 files changed +10
-4
lines changed
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -655,6 +655,10 @@ pub(crate) struct ChannelMonitorImpl<Signer: Sign> {
655
655
// deserialization
656
656
current_holder_commitment_number : u64 ,
657
657
658
+ /// The set of payment hashes from inbound payments for which we know the preimage. Payment
659
+ /// preimages that are not included in any unrevoked local commitment transaction or unrevoked
660
+ /// remote commitment transactions are automatically removed when commitment transactions are
661
+ /// revoked.
658
662
payment_preimages : HashMap < PaymentHash , PaymentPreimage > ,
659
663
660
664
// Note that `MonitorEvent`s MUST NOT be generated during update processing, only generated
Original file line number Diff line number Diff line change @@ -1703,11 +1703,11 @@ impl<Signer: Sign> Channel<Signer> {
1703
1703
make_funding_redeemscript ( & self . get_holder_pubkeys ( ) . funding_pubkey , self . counterparty_funding_pubkey ( ) )
1704
1704
}
1705
1705
1706
- /// Claims an HTLC while we're disconnected from a peer, dropping the ChannelMonitorUpdate
1706
+ /// Claims an HTLC while we're disconnected from a peer, dropping the [` ChannelMonitorUpdate`]
1707
1707
/// entirely.
1708
1708
///
1709
- /// The ChannelMonitor for this channel MUST be updated out-of-band with the preimage provided
1710
- /// (i.e. without calling [`crate::chain::Watch::update_channel`]).
1709
+ /// The [` ChannelMonitor`] for this channel MUST be updated out-of-band with the preimage
1710
+ /// provided (i.e. without calling [`crate::chain::Watch::update_channel`]).
1711
1711
///
1712
1712
/// The HTLC claim will end up in the holding cell (because the caller must ensure the peer is
1713
1713
/// disconnected).
Original file line number Diff line number Diff line change @@ -414,7 +414,9 @@ pub(super) struct ChannelHolder<Signer: Sign> {
414
414
/// guarantees are made about the existence of a channel with the short id here, nor the short
415
415
/// ids in the PendingHTLCInfo!
416
416
pub ( super ) forward_htlcs : HashMap < u64 , Vec < HTLCForwardInfo > > ,
417
- /// Map from payment hash to any HTLCs which are to us and can be failed/claimed by the user.
417
+ /// Map from payment hash to the payment data and any HTLCs which are to us and can be
418
+ /// failed/claimed by the user.
419
+ ///
418
420
/// Note that while this is held in the same mutex as the channels themselves, no consistency
419
421
/// guarantees are made about the channels given here actually existing anymore by the time you
420
422
/// go to read them!
You can’t perform that action at this time.
0 commit comments