Skip to content

Commit a80790a

Browse files
committed
allow access to some node and channel announcements fields
1 parent cca9968 commit a80790a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lightning/src/ln/msgs.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,8 @@ pub struct UnsignedNodeAnnouncement {
394394
/// A node_announcement message to be sent or received from a peer
395395
pub struct NodeAnnouncement {
396396
pub(crate) signature: Signature,
397-
pub(crate) contents: UnsignedNodeAnnouncement,
397+
/// The actual node announcement
398+
pub contents: UnsignedNodeAnnouncement,
398399
}
399400

400401
// Only exposed as broadcast of channel_announcement should be filtered by node_id
@@ -403,7 +404,8 @@ pub struct NodeAnnouncement {
403404
pub struct UnsignedChannelAnnouncement {
404405
pub(crate) features: ChannelFeatures,
405406
pub(crate) chain_hash: BlockHash,
406-
pub(crate) short_channel_id: u64,
407+
/// Short channel ID
408+
pub short_channel_id: u64,
407409
/// One of the two node_ids which are endpoints of this channel
408410
pub node_id_1: PublicKey,
409411
/// The other of the two node_ids which are endpoints of this channel
@@ -419,7 +421,8 @@ pub struct ChannelAnnouncement {
419421
pub(crate) node_signature_2: Signature,
420422
pub(crate) bitcoin_signature_1: Signature,
421423
pub(crate) bitcoin_signature_2: Signature,
422-
pub(crate) contents: UnsignedChannelAnnouncement,
424+
/// The actual channel announcement
425+
pub contents: UnsignedChannelAnnouncement,
423426
}
424427

425428
#[derive(PartialEq, Clone, Debug)]

0 commit comments

Comments
 (0)