@@ -182,10 +182,10 @@ pub struct Pong {
182
182
pub byteslen : u16 ,
183
183
}
184
184
185
- /// Contains fields that are both common to [`open_channel`] and `open_channel2` messages.
185
+ /// Contains fields that are both common to [`open_channel`] and [ `open_channel2`] messages.
186
186
///
187
187
/// [`open_channel`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-open_channel-message
188
- // TODO(dual_funding): Add spec link for `open_channel2`.
188
+ /// [ `open_channel2`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-open_channel2-message
189
189
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
190
190
pub struct CommonOpenChannelFields {
191
191
/// The genesis hash of the blockchain where the channel is to be opened
@@ -252,11 +252,11 @@ pub struct OpenChannel {
252
252
pub channel_reserve_satoshis : u64 ,
253
253
}
254
254
255
- /// An open_channel2 message to be sent by or received from the channel initiator.
255
+ /// An [` open_channel2`] message to be sent by or received from the channel initiator.
256
256
///
257
257
/// Used in V2 channel establishment
258
258
///
259
- // TODO(dual_funding): Add spec link for `open_channel2`.
259
+ /// [ `open_channel2`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-open_channel2-message
260
260
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
261
261
pub struct OpenChannelV2 {
262
262
/// Common fields of `open_channel(2)`-like messages
@@ -271,10 +271,10 @@ pub struct OpenChannelV2 {
271
271
pub require_confirmed_inputs : Option < ( ) > ,
272
272
}
273
273
274
- /// Contains fields that are both common to [`accept_channel`] and `accept_channel2` messages.
274
+ /// Contains fields that are both common to [`accept_channel`] and [ `accept_channel2`] messages.
275
275
///
276
276
/// [`accept_channel`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-accept_channel-message
277
- // TODO(dual_funding): Add spec link for `accept_channel2`.
277
+ /// [ `accept_channel2`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-accept_channel2-message
278
278
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
279
279
pub struct CommonAcceptChannelFields {
280
280
/// The same `temporary_channel_id` received from the initiator's `open_channel2` or `open_channel` message.
@@ -334,11 +334,11 @@ pub struct AcceptChannel {
334
334
pub next_local_nonce : Option < musig2:: types:: PublicNonce > ,
335
335
}
336
336
337
- /// An accept_channel2 message to be sent by or received from the channel accepter.
337
+ /// An [` accept_channel2`] message to be sent by or received from the channel accepter.
338
338
///
339
339
/// Used in V2 channel establishment
340
340
///
341
- // TODO(dual_funding): Add spec link for `accept_channel2`.
341
+ /// [ `accept_channel2`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-accept_channel2-message
342
342
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
343
343
pub struct AcceptChannelV2 {
344
344
/// Common fields of `accept_channel(2)`-like messages
@@ -464,9 +464,9 @@ pub struct SpliceLocked {
464
464
pub channel_id : ChannelId ,
465
465
}
466
466
467
- /// A tx_add_input message for adding an input during interactive transaction construction
467
+ /// A [` tx_add_input`] message for adding an input during interactive transaction construction
468
468
///
469
- // TODO(dual_funding): Add spec link for `tx_add_input`.
469
+ /// [ `tx_add_input`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_add_input-message
470
470
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
471
471
pub struct TxAddInput {
472
472
/// The channel ID
@@ -483,9 +483,9 @@ pub struct TxAddInput {
483
483
pub sequence : u32 ,
484
484
}
485
485
486
- /// A tx_add_output message for adding an output during interactive transaction construction.
486
+ /// A [` tx_add_output`] message for adding an output during interactive transaction construction.
487
487
///
488
- // TODO(dual_funding): Add spec link for `tx_add_output`.
488
+ /// [ `tx_add_output`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_add_output-message
489
489
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
490
490
pub struct TxAddOutput {
491
491
/// The channel ID
@@ -499,9 +499,9 @@ pub struct TxAddOutput {
499
499
pub script : ScriptBuf ,
500
500
}
501
501
502
- /// A tx_remove_input message for removing an input during interactive transaction construction.
502
+ /// A [` tx_remove_input`] message for removing an input during interactive transaction construction.
503
503
///
504
- // TODO(dual_funding): Add spec link for `tx_remove_input`.
504
+ /// [ `tx_remove_input`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_remove_input-and-tx_remove_output-messages
505
505
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
506
506
pub struct TxRemoveInput {
507
507
/// The channel ID
@@ -510,9 +510,9 @@ pub struct TxRemoveInput {
510
510
pub serial_id : SerialId ,
511
511
}
512
512
513
- /// A tx_remove_output message for removing an output during interactive transaction construction.
513
+ /// A [` tx_remove_output`] message for removing an output during interactive transaction construction.
514
514
///
515
- // TODO(dual_funding): Add spec link for `tx_remove_output`.
515
+ /// [ `tx_remove_output`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_remove_input-and-tx_remove_output-messages
516
516
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
517
517
pub struct TxRemoveOutput {
518
518
/// The channel ID
@@ -521,20 +521,20 @@ pub struct TxRemoveOutput {
521
521
pub serial_id : SerialId ,
522
522
}
523
523
524
- /// A tx_complete message signalling the conclusion of a peer's transaction contributions during
524
+ /// [` A tx_complete`] message signalling the conclusion of a peer's transaction contributions during
525
525
/// interactive transaction construction.
526
526
///
527
- // TODO(dual_funding): Add spec link for `tx_complete`.
527
+ /// [ `tx_complete`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_complete-message
528
528
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
529
529
pub struct TxComplete {
530
530
/// The channel ID
531
531
pub channel_id : ChannelId ,
532
532
}
533
533
534
- /// A tx_signatures message containing the sender's signatures for a transaction constructed with
534
+ /// A [` tx_signatures`] message containing the sender's signatures for a transaction constructed with
535
535
/// interactive transaction construction.
536
536
///
537
- // TODO(dual_funding): Add spec link for `tx_signatures`.
537
+ /// [ `tx_signatures`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_signatures-message
538
538
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
539
539
pub struct TxSignatures {
540
540
/// The channel ID
@@ -547,10 +547,10 @@ pub struct TxSignatures {
547
547
pub funding_outpoint_sig : Option < Signature > ,
548
548
}
549
549
550
- /// A tx_init_rbf message which initiates a replacement of the transaction after it's been
550
+ /// A [` tx_init_rbf`] message which initiates a replacement of the transaction after it's been
551
551
/// completed.
552
552
///
553
- // TODO(dual_funding): Add spec link for `tx_init_rbf`.
553
+ /// [ `tx_init_rbf`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_init_rbf-message
554
554
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
555
555
pub struct TxInitRbf {
556
556
/// The channel ID
@@ -564,10 +564,10 @@ pub struct TxInitRbf {
564
564
pub funding_output_contribution : Option < i64 > ,
565
565
}
566
566
567
- /// A tx_ack_rbf message which acknowledges replacement of the transaction after it's been
567
+ /// A [` tx_ack_rbf`] message which acknowledges replacement of the transaction after it's been
568
568
/// completed.
569
569
///
570
- // TODO(dual_funding): Add spec link for `tx_ack_rbf`.
570
+ /// [ `tx_ack_rbf`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_ack_rbf-message
571
571
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
572
572
pub struct TxAckRbf {
573
573
/// The channel ID
@@ -577,9 +577,9 @@ pub struct TxAckRbf {
577
577
pub funding_output_contribution : Option < i64 > ,
578
578
}
579
579
580
- /// A tx_abort message which signals the cancellation of an in-progress transaction negotiation.
580
+ /// A [` tx_abort`] message which signals the cancellation of an in-progress transaction negotiation.
581
581
///
582
- // TODO(dual_funding): Add spec link for `tx_abort`.
582
+ /// [ `tx_abort`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_abort-message
583
583
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
584
584
pub struct TxAbort {
585
585
/// The channel ID
0 commit comments