@@ -295,26 +295,26 @@ impl UniffiCustomTypeConverter for Txid {
295295
296296/// Details of a channel as returned by [`Node::list_channels`].
297297///
298- /// [`Node::list_channels`]: [` crate::Node::list_channels`]
298+ /// [`Node::list_channels`]: crate::Node::list_channels
299299#[ derive( Debug , Clone , PartialEq , Eq ) ]
300300pub struct ChannelDetails {
301- /// The channel's ID (prior to funding transaction generation, this is a random 32 bytes,
302- /// thereafter this is the transaction ID of the funding transaction XOR the funding transaction
303- /// output).
301+ /// The channel ID (prior to funding transaction generation, this is a random 32 byte
302+ /// identifier, afterwards this is the transaction ID of the funding transaction XOR the
303+ /// funding transaction output).
304304 ///
305305 /// Note that this means this value is *not* persistent - it can change once during the
306306 /// lifetime of the channel.
307307 pub channel_id : ChannelId ,
308- /// The `node_id` of our channel's counterparty.
308+ /// The node ID of our the channel's counterparty.
309309 pub counterparty_node_id : PublicKey ,
310310 /// The channel's funding transaction output, if we've negotiated the funding transaction with
311311 /// our counterparty already.
312312 pub funding_txo : Option < OutPoint > ,
313- /// The value, in satoshis, of this channel as appears in the funding output.
314- pub channel_value_satoshis : u64 ,
315- /// The value, in satoshis, that must always be held in the channel for us. This value ensures
316- /// that if we broadcast a revoked state, our counterparty can punish us by claiming at least
317- /// this value on chain.
313+ /// The value, in satoshis, of this channel as it appears in the funding output.
314+ pub channel_value_sats : u64 ,
315+ /// The value, in satoshis, that must always be held as a reserve in the channel for us. This
316+ /// value ensures that if we broadcast a revoked state, our counterparty can punish us by
317+ /// claiming at least this value on chain.
318318 ///
319319 /// This value is not included in [`outbound_capacity_msat`] as it can never be spent.
320320 ///
@@ -324,19 +324,19 @@ pub struct ChannelDetails {
324324 pub unspendable_punishment_reserve : Option < u64 > ,
325325 /// The local `user_channel_id` of this channel.
326326 pub user_channel_id : UserChannelId ,
327- /// Total balance of the channel. This is the amount that will be returned to the user if the
328- /// channel is closed.
327+ /// The total balance of the channel. This is the amount that will be returned to
328+ /// the user if the channel is closed.
329329 ///
330330 /// The value is not exact, due to potential in-flight and fee-rate changes. Therefore, exactly
331331 /// this amount is likely irrecoverable on close.
332332 pub balance_msat : u64 ,
333- /// Available outbound capacity for sending HTLCs to the remote peer.
333+ /// The available outbound capacity for sending HTLCs to the remote peer.
334334 ///
335335 /// The amount does not include any pending HTLCs which are not yet resolved (and, thus, whose
336336 /// balance is not available for inclusion in new outbound HTLCs). This further does not include
337337 /// any pending outgoing HTLCs which are awaiting some other resolution to be sent.
338338 pub outbound_capacity_msat : u64 ,
339- /// Available outbound capacity for sending HTLCs to the remote peer.
339+ /// The available outbound capacity for sending HTLCs to the remote peer.
340340 ///
341341 /// The amount does not include any pending HTLCs which are not yet resolved
342342 /// (and, thus, whose balance is not available for inclusion in new inbound HTLCs). This further
@@ -352,13 +352,13 @@ pub struct ChannelDetails {
352352 pub confirmations : Option < u32 > ,
353353 /// Returns `true` if the channel was initiated (and therefore funded) by us.
354354 pub is_outbound : bool ,
355- /// Returns `true` if the channel is confirmed, both parties have exchanged `channel_ready`
356- /// messages, and the channel is not currently being shut down. Both parties exchange
357- /// `channel_ready` messages upon independently verifying that the required confirmations count
358- /// provided by `confirmations_required` has been reached.
355+ /// Returns `true` if both parties have exchanged `channel_ready` messages, and the channel is
356+ /// not currently being shut down. Both parties exchange `channel_ready` messages upon
357+ /// independently verifying that the required confirmations count provided by
358+ /// `confirmations_required` has been reached.
359359 pub is_channel_ready : bool ,
360- /// Returns `true` if the channel is (a) confirmed and `channel_ready` has been exchanged,
361- /// (b) the peer is connected, and (c) the channel is not currently negotiating shutdown.
360+ /// Returns `true` if the channel (a) `channel_ready` messages have been exchanged, (b) the
361+ /// peer is connected, and (c) the channel is not currently negotiating shutdown.
362362 ///
363363 /// This is a strict superset of `is_channel_ready`.
364364 pub is_usable : bool ,
@@ -375,7 +375,7 @@ impl From<LdkChannelDetails> for ChannelDetails {
375375 channel_id : ChannelId ( value. channel_id ) ,
376376 counterparty_node_id : value. counterparty . node_id ,
377377 funding_txo : value. funding_txo . and_then ( |o| Some ( o. into_bitcoin_outpoint ( ) ) ) ,
378- channel_value_satoshis : value. channel_value_satoshis ,
378+ channel_value_sats : value. channel_value_satoshis ,
379379 unspendable_punishment_reserve : value. unspendable_punishment_reserve ,
380380 user_channel_id : UserChannelId ( value. user_channel_id ) ,
381381 balance_msat : value. balance_msat ,
@@ -394,7 +394,7 @@ impl From<LdkChannelDetails> for ChannelDetails {
394394
395395/// Details of a known Lightning peer as returned by [`Node::list_peers`].
396396///
397- /// [`Node::list_peers`]: [` crate::Node::list_peers`]
397+ /// [`Node::list_peers`]: crate::Node::list_peers
398398#[ derive( Debug , Clone , PartialEq , Eq ) ]
399399pub struct PeerDetails {
400400 /// The node ID of the peer.
0 commit comments