Skip to content

Commit 5f2b04b

Browse files
committed
Publicize all UnsignedNodeAnnouncement fields.
This is necessary for RGSS tests to create new announcements.
1 parent 2c9dbb9 commit 5f2b04b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

lightning/src/ln/msgs.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,8 +1136,16 @@ pub struct UnsignedNodeAnnouncement {
11361136
pub alias: NodeAlias,
11371137
/// List of addresses on which this node is reachable
11381138
pub addresses: Vec<SocketAddress>,
1139-
pub(crate) excess_address_data: Vec<u8>,
1140-
pub(crate) excess_data: Vec<u8>,
1139+
/// Excess address data which was signed as a part of the message which we do not (yet) understand how
1140+
/// to decode.
1141+
///
1142+
/// This is stored to ensure forward-compatibility as new address types are added to the lightning gossip protocol.
1143+
pub excess_address_data: Vec<u8>,
1144+
/// Excess data which was signed as a part of the message which we do not (yet) understand how
1145+
/// to decode.
1146+
///
1147+
/// This is stored to ensure forward-compatibility as new fields are added to the lightning gossip protocol.
1148+
pub excess_data: Vec<u8>,
11411149
}
11421150
#[derive(Clone, Debug, Hash, PartialEq, Eq)]
11431151
/// A [`node_announcement`] message to be sent to or received from a peer.

0 commit comments

Comments
 (0)