@@ -394,7 +394,8 @@ pub struct UnsignedNodeAnnouncement {
394
394
/// A node_announcement message to be sent or received from a peer
395
395
pub struct NodeAnnouncement {
396
396
pub ( crate ) signature : Signature ,
397
- pub ( crate ) contents : UnsignedNodeAnnouncement ,
397
+ /// The actual node announcement
398
+ pub contents : UnsignedNodeAnnouncement ,
398
399
}
399
400
400
401
// Only exposed as broadcast of channel_announcement should be filtered by node_id
@@ -403,7 +404,8 @@ pub struct NodeAnnouncement {
403
404
pub struct UnsignedChannelAnnouncement {
404
405
pub ( crate ) features : ChannelFeatures ,
405
406
pub ( crate ) chain_hash : BlockHash ,
406
- pub ( crate ) short_channel_id : u64 ,
407
+ /// Short channel ID
408
+ pub short_channel_id : u64 ,
407
409
/// One of the two node_ids which are endpoints of this channel
408
410
pub node_id_1 : PublicKey ,
409
411
/// The other of the two node_ids which are endpoints of this channel
@@ -419,7 +421,8 @@ pub struct ChannelAnnouncement {
419
421
pub ( crate ) node_signature_2 : Signature ,
420
422
pub ( crate ) bitcoin_signature_1 : Signature ,
421
423
pub ( crate ) bitcoin_signature_2 : Signature ,
422
- pub ( crate ) contents : UnsignedChannelAnnouncement ,
424
+ /// The actual channel announcement
425
+ pub contents : UnsignedChannelAnnouncement ,
423
426
}
424
427
425
428
#[ derive( PartialEq , Clone , Debug ) ]
0 commit comments