@@ -30,12 +30,21 @@ pub struct ClosedChannelDetails {
3030 /// The local identifier of the channel.
3131 pub user_channel_id : UserChannelId ,
3232 /// The node ID of the channel's counterparty.
33+ ///
34+ /// Will be `None` if the channel was closed before the counterparty's node ID could be
35+ /// determined (e.g., very early in the channel negotiation process).
3336 pub counterparty_node_id : Option < PublicKey > ,
3437 /// The channel's funding transaction outpoint.
38+ ///
39+ /// Will be `None` if the channel was closed before a funding transaction was established.
3540 pub funding_txo : Option < OutPoint > ,
3641 /// The channel's capacity in satoshis.
42+ ///
43+ /// Will be `None` if the channel was closed before the capacity was known.
3744 pub channel_capacity_sats : Option < u64 > ,
3845 /// Our local balance in millisatoshis at the time of channel closure.
46+ ///
47+ /// Will be `None` if the local balance was not available at the time of closure.
3948 pub last_local_balance_msat : Option < u64 > ,
4049 /// Indicates whether we initiated the channel opening.
4150 ///
@@ -47,6 +56,9 @@ pub struct ClosedChannelDetails {
4756 /// This will be `false` for channels opened prior to this field being tracked.
4857 pub is_announced : bool ,
4958 /// The reason for the channel closure.
59+ ///
60+ /// Will be `None` if the closure reason could not be decoded, e.g., if it was written by a
61+ /// future version of LDK Node using a closure reason variant not yet known to this version.
5062 pub closure_reason : Option < ClosureReason > ,
5163 /// The timestamp, in seconds since start of the UNIX epoch, when the channel was closed.
5264 pub closed_at : u64 ,
0 commit comments