@@ -29,10 +29,16 @@ pub struct ClosedChannelDetails {
2929 /// The node ID of the channel's counterparty.
3030 pub counterparty_node_id : PublicKey ,
3131 /// The channel's funding transaction outpoint.
32+ ///
33+ /// Will be `None` if the channel was closed before a funding transaction was established.
3234 pub funding_txo : Option < OutPoint > ,
3335 /// The channel's capacity in satoshis.
36+ ///
37+ /// Will be `None` if the channel was closed before the capacity was known.
3438 pub channel_capacity_sats : Option < u64 > ,
3539 /// Our local balance in millisatoshis at the time of channel closure.
40+ ///
41+ /// Will be `None` if the local balance was not available at the time of closure.
3642 pub last_local_balance_msat : Option < u64 > ,
3743 /// Indicates whether we initiated the channel opening.
3844 ///
@@ -44,6 +50,9 @@ pub struct ClosedChannelDetails {
4450 /// This will be `false` for channels opened prior to this field being tracked.
4551 pub is_announced : bool ,
4652 /// The reason for the channel closure.
53+ ///
54+ /// Will be `None` if the closure reason could not be decoded, e.g., if it was written by a
55+ /// future version of LDK Node using a closure reason variant not yet known to this version.
4756 pub closure_reason : Option < ClosureReason > ,
4857 /// The timestamp, in seconds since start of the UNIX epoch, when the channel was closed.
4958 pub closed_at : u64 ,
0 commit comments