@@ -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
@@ -468,9 +468,9 @@ pub struct SpliceLocked {
468
468
pub splice_txid : Txid ,
469
469
}
470
470
471
- /// A tx_add_input message for adding an input during interactive transaction construction
471
+ /// A [` tx_add_input`] message for adding an input during interactive transaction construction
472
472
///
473
- // TODO(dual_funding): Add spec link for `tx_add_input`.
473
+ /// [ `tx_add_input`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_add_input-message
474
474
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
475
475
pub struct TxAddInput {
476
476
/// The channel ID
@@ -489,9 +489,9 @@ pub struct TxAddInput {
489
489
pub shared_input_txid : Option < Txid > ,
490
490
}
491
491
492
- /// A tx_add_output message for adding an output during interactive transaction construction.
492
+ /// A [` tx_add_output`] message for adding an output during interactive transaction construction.
493
493
///
494
- // TODO(dual_funding): Add spec link for `tx_add_output`.
494
+ /// [ `tx_add_output`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_add_output-message
495
495
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
496
496
pub struct TxAddOutput {
497
497
/// The channel ID
@@ -505,9 +505,9 @@ pub struct TxAddOutput {
505
505
pub script : ScriptBuf ,
506
506
}
507
507
508
- /// A tx_remove_input message for removing an input during interactive transaction construction.
508
+ /// A [` tx_remove_input`] message for removing an input during interactive transaction construction.
509
509
///
510
- // TODO(dual_funding): Add spec link for `tx_remove_input`.
510
+ /// [ `tx_remove_input`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_remove_input-and-tx_remove_output-messages
511
511
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
512
512
pub struct TxRemoveInput {
513
513
/// The channel ID
@@ -516,9 +516,9 @@ pub struct TxRemoveInput {
516
516
pub serial_id : SerialId ,
517
517
}
518
518
519
- /// A tx_remove_output message for removing an output during interactive transaction construction.
519
+ /// A [` tx_remove_output`] message for removing an output during interactive transaction construction.
520
520
///
521
- // TODO(dual_funding): Add spec link for `tx_remove_output`.
521
+ /// [ `tx_remove_output`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_remove_input-and-tx_remove_output-messages
522
522
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
523
523
pub struct TxRemoveOutput {
524
524
/// The channel ID
@@ -527,20 +527,20 @@ pub struct TxRemoveOutput {
527
527
pub serial_id : SerialId ,
528
528
}
529
529
530
- /// A tx_complete message signalling the conclusion of a peer's transaction contributions during
530
+ /// [` A tx_complete`] message signalling the conclusion of a peer's transaction contributions during
531
531
/// interactive transaction construction.
532
532
///
533
- // TODO(dual_funding): Add spec link for `tx_complete`.
533
+ /// [ `tx_complete`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_complete-message
534
534
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
535
535
pub struct TxComplete {
536
536
/// The channel ID
537
537
pub channel_id : ChannelId ,
538
538
}
539
539
540
- /// A tx_signatures message containing the sender's signatures for a transaction constructed with
540
+ /// A [` tx_signatures`] message containing the sender's signatures for a transaction constructed with
541
541
/// interactive transaction construction.
542
542
///
543
- // TODO(dual_funding): Add spec link for `tx_signatures`.
543
+ /// [ `tx_signatures`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_signatures-message
544
544
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
545
545
pub struct TxSignatures {
546
546
/// The channel ID
@@ -553,10 +553,10 @@ pub struct TxSignatures {
553
553
pub shared_input_signature : Option < Signature > ,
554
554
}
555
555
556
- /// A tx_init_rbf message which initiates a replacement of the transaction after it's been
556
+ /// A [` tx_init_rbf`] message which initiates a replacement of the transaction after it's been
557
557
/// completed.
558
558
///
559
- // TODO(dual_funding): Add spec link for `tx_init_rbf`.
559
+ /// [ `tx_init_rbf`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_init_rbf-message
560
560
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
561
561
pub struct TxInitRbf {
562
562
/// The channel ID
@@ -570,10 +570,10 @@ pub struct TxInitRbf {
570
570
pub funding_output_contribution : Option < i64 > ,
571
571
}
572
572
573
- /// A tx_ack_rbf message which acknowledges replacement of the transaction after it's been
573
+ /// A [` tx_ack_rbf`] message which acknowledges replacement of the transaction after it's been
574
574
/// completed.
575
575
///
576
- // TODO(dual_funding): Add spec link for `tx_ack_rbf`.
576
+ /// [ `tx_ack_rbf`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_ack_rbf-message
577
577
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
578
578
pub struct TxAckRbf {
579
579
/// The channel ID
@@ -583,9 +583,9 @@ pub struct TxAckRbf {
583
583
pub funding_output_contribution : Option < i64 > ,
584
584
}
585
585
586
- /// A tx_abort message which signals the cancellation of an in-progress transaction negotiation.
586
+ /// A [` tx_abort`] message which signals the cancellation of an in-progress transaction negotiation.
587
587
///
588
- // TODO(dual_funding): Add spec link for `tx_abort`.
588
+ /// [ `tx_abort`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_abort-message
589
589
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
590
590
pub struct TxAbort {
591
591
/// The channel ID
0 commit comments