@@ -295,26 +295,26 @@ impl UniffiCustomTypeConverter for Txid {
295
295
296
296
/// Details of a channel as returned by [`Node::list_channels`].
297
297
///
298
- /// [`Node::list_channels`]: [` crate::Node::list_channels`]
298
+ /// [`Node::list_channels`]: crate::Node::list_channels
299
299
#[ derive( Debug , Clone , PartialEq , Eq ) ]
300
300
pub 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).
304
304
///
305
305
/// Note that this means this value is *not* persistent - it can change once during the
306
306
/// lifetime of the channel.
307
307
pub channel_id : ChannelId ,
308
- /// The `node_id` of our channel's counterparty.
308
+ /// The node ID of our the channel's counterparty.
309
309
pub counterparty_node_id : PublicKey ,
310
310
/// The channel's funding transaction output, if we've negotiated the funding transaction with
311
311
/// our counterparty already.
312
312
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.
318
318
///
319
319
/// This value is not included in [`outbound_capacity_msat`] as it can never be spent.
320
320
///
@@ -324,19 +324,19 @@ pub struct ChannelDetails {
324
324
pub unspendable_punishment_reserve : Option < u64 > ,
325
325
/// The local `user_channel_id` of this channel.
326
326
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.
329
329
///
330
330
/// The value is not exact, due to potential in-flight and fee-rate changes. Therefore, exactly
331
331
/// this amount is likely irrecoverable on close.
332
332
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.
334
334
///
335
335
/// The amount does not include any pending HTLCs which are not yet resolved (and, thus, whose
336
336
/// balance is not available for inclusion in new outbound HTLCs). This further does not include
337
337
/// any pending outgoing HTLCs which are awaiting some other resolution to be sent.
338
338
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.
340
340
///
341
341
/// The amount does not include any pending HTLCs which are not yet resolved
342
342
/// (and, thus, whose balance is not available for inclusion in new inbound HTLCs). This further
@@ -352,13 +352,13 @@ pub struct ChannelDetails {
352
352
pub confirmations : Option < u32 > ,
353
353
/// Returns `true` if the channel was initiated (and therefore funded) by us.
354
354
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.
359
359
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.
362
362
///
363
363
/// This is a strict superset of `is_channel_ready`.
364
364
pub is_usable : bool ,
@@ -375,7 +375,7 @@ impl From<LdkChannelDetails> for ChannelDetails {
375
375
channel_id : ChannelId ( value. channel_id ) ,
376
376
counterparty_node_id : value. counterparty . node_id ,
377
377
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 ,
379
379
unspendable_punishment_reserve : value. unspendable_punishment_reserve ,
380
380
user_channel_id : UserChannelId ( value. user_channel_id ) ,
381
381
balance_msat : value. balance_msat ,
@@ -394,7 +394,7 @@ impl From<LdkChannelDetails> for ChannelDetails {
394
394
395
395
/// Details of a known Lightning peer as returned by [`Node::list_peers`].
396
396
///
397
- /// [`Node::list_peers`]: [` crate::Node::list_peers`]
397
+ /// [`Node::list_peers`]: crate::Node::list_peers
398
398
#[ derive( Debug , Clone , PartialEq , Eq ) ]
399
399
pub struct PeerDetails {
400
400
/// The node ID of the peer.
0 commit comments