@@ -183,10 +183,10 @@ pub struct Pong {
183
183
pub byteslen : u16 ,
184
184
}
185
185
186
- /// Contains fields that are both common to [`open_channel`] and `open_channel2` messages.
186
+ /// Contains fields that are both common to [`open_channel`] and [ `open_channel2`] messages.
187
187
///
188
188
/// [`open_channel`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-open_channel-message
189
- // TODO(dual_funding): Add spec link for `open_channel2`.
189
+ /// [ `open_channel2`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-open_channel2-message
190
190
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
191
191
pub struct CommonOpenChannelFields {
192
192
/// The genesis hash of the blockchain where the channel is to be opened
@@ -288,11 +288,11 @@ pub struct OpenChannel {
288
288
pub channel_reserve_satoshis : u64 ,
289
289
}
290
290
291
- /// An open_channel2 message to be sent by or received from the channel initiator.
291
+ /// An [` open_channel2`] message to be sent by or received from the channel initiator.
292
292
///
293
293
/// Used in V2 channel establishment
294
294
///
295
- // TODO(dual_funding): Add spec link for `open_channel2`.
295
+ /// [ `open_channel2`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-open_channel2-message
296
296
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
297
297
pub struct OpenChannelV2 {
298
298
/// Common fields of `open_channel(2)`-like messages
@@ -307,10 +307,10 @@ pub struct OpenChannelV2 {
307
307
pub require_confirmed_inputs : Option < ( ) > ,
308
308
}
309
309
310
- /// Contains fields that are both common to [`accept_channel`] and `accept_channel2` messages.
310
+ /// Contains fields that are both common to [`accept_channel`] and [ `accept_channel2`] messages.
311
311
///
312
312
/// [`accept_channel`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-accept_channel-message
313
- // TODO(dual_funding): Add spec link for `accept_channel2`.
313
+ /// [ `accept_channel2`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-accept_channel2-message
314
314
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
315
315
pub struct CommonAcceptChannelFields {
316
316
/// The same `temporary_channel_id` received from the initiator's `open_channel2` or `open_channel` message.
@@ -370,11 +370,11 @@ pub struct AcceptChannel {
370
370
pub next_local_nonce : Option < musig2:: types:: PublicNonce > ,
371
371
}
372
372
373
- /// An accept_channel2 message to be sent by or received from the channel accepter.
373
+ /// An [` accept_channel2`] message to be sent by or received from the channel accepter.
374
374
///
375
375
/// Used in V2 channel establishment
376
376
///
377
- // TODO(dual_funding): Add spec link for `accept_channel2`.
377
+ /// [ `accept_channel2`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-accept_channel2-message
378
378
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
379
379
pub struct AcceptChannelV2 {
380
380
/// Common fields of `accept_channel(2)`-like messages
@@ -504,9 +504,9 @@ pub struct SpliceLocked {
504
504
pub splice_txid : Txid ,
505
505
}
506
506
507
- /// A tx_add_input message for adding an input during interactive transaction construction
507
+ /// A [` tx_add_input`] message for adding an input during interactive transaction construction
508
508
///
509
- // TODO(dual_funding): Add spec link for `tx_add_input`.
509
+ /// [ `tx_add_input`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_add_input-message
510
510
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
511
511
pub struct TxAddInput {
512
512
/// The channel ID
@@ -525,9 +525,9 @@ pub struct TxAddInput {
525
525
pub shared_input_txid : Option < Txid > ,
526
526
}
527
527
528
- /// A tx_add_output message for adding an output during interactive transaction construction.
528
+ /// A [` tx_add_output`] message for adding an output during interactive transaction construction.
529
529
///
530
- // TODO(dual_funding): Add spec link for `tx_add_output`.
530
+ /// [ `tx_add_output`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_add_output-message
531
531
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
532
532
pub struct TxAddOutput {
533
533
/// The channel ID
@@ -541,9 +541,9 @@ pub struct TxAddOutput {
541
541
pub script : ScriptBuf ,
542
542
}
543
543
544
- /// A tx_remove_input message for removing an input during interactive transaction construction.
544
+ /// A [` tx_remove_input`] message for removing an input during interactive transaction construction.
545
545
///
546
- // TODO(dual_funding): Add spec link for `tx_remove_input`.
546
+ /// [ `tx_remove_input`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_remove_input-and-tx_remove_output-messages
547
547
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
548
548
pub struct TxRemoveInput {
549
549
/// The channel ID
@@ -552,9 +552,9 @@ pub struct TxRemoveInput {
552
552
pub serial_id : SerialId ,
553
553
}
554
554
555
- /// A tx_remove_output message for removing an output during interactive transaction construction.
555
+ /// A [` tx_remove_output`] message for removing an output during interactive transaction construction.
556
556
///
557
- // TODO(dual_funding): Add spec link for `tx_remove_output`.
557
+ /// [ `tx_remove_output`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_remove_input-and-tx_remove_output-messages
558
558
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
559
559
pub struct TxRemoveOutput {
560
560
/// The channel ID
@@ -563,20 +563,20 @@ pub struct TxRemoveOutput {
563
563
pub serial_id : SerialId ,
564
564
}
565
565
566
- /// A tx_complete message signalling the conclusion of a peer's transaction contributions during
566
+ /// [` A tx_complete`] message signalling the conclusion of a peer's transaction contributions during
567
567
/// interactive transaction construction.
568
568
///
569
- // TODO(dual_funding): Add spec link for `tx_complete`.
569
+ /// [ `tx_complete`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_complete-message
570
570
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
571
571
pub struct TxComplete {
572
572
/// The channel ID
573
573
pub channel_id : ChannelId ,
574
574
}
575
575
576
- /// A tx_signatures message containing the sender's signatures for a transaction constructed with
576
+ /// A [` tx_signatures`] message containing the sender's signatures for a transaction constructed with
577
577
/// interactive transaction construction.
578
578
///
579
- // TODO(dual_funding): Add spec link for `tx_signatures`.
579
+ /// [ `tx_signatures`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_signatures-message
580
580
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
581
581
pub struct TxSignatures {
582
582
/// The channel ID
@@ -589,10 +589,10 @@ pub struct TxSignatures {
589
589
pub shared_input_signature : Option < Signature > ,
590
590
}
591
591
592
- /// A tx_init_rbf message which initiates a replacement of the transaction after it's been
592
+ /// A [` tx_init_rbf`] message which initiates a replacement of the transaction after it's been
593
593
/// completed.
594
594
///
595
- // TODO(dual_funding): Add spec link for `tx_init_rbf`.
595
+ /// [ `tx_init_rbf`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_init_rbf-message
596
596
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
597
597
pub struct TxInitRbf {
598
598
/// The channel ID
@@ -606,10 +606,10 @@ pub struct TxInitRbf {
606
606
pub funding_output_contribution : Option < i64 > ,
607
607
}
608
608
609
- /// A tx_ack_rbf message which acknowledges replacement of the transaction after it's been
609
+ /// A [` tx_ack_rbf`] message which acknowledges replacement of the transaction after it's been
610
610
/// completed.
611
611
///
612
- // TODO(dual_funding): Add spec link for `tx_ack_rbf`.
612
+ /// [ `tx_ack_rbf`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_ack_rbf-message
613
613
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
614
614
pub struct TxAckRbf {
615
615
/// The channel ID
@@ -619,9 +619,9 @@ pub struct TxAckRbf {
619
619
pub funding_output_contribution : Option < i64 > ,
620
620
}
621
621
622
- /// A tx_abort message which signals the cancellation of an in-progress transaction negotiation.
622
+ /// A [` tx_abort`] message which signals the cancellation of an in-progress transaction negotiation.
623
623
///
624
- // TODO(dual_funding): Add spec link for `tx_abort`.
624
+ /// [ `tx_abort`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_abort-message
625
625
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
626
626
pub struct TxAbort {
627
627
/// The channel ID
0 commit comments