Skip to content

Commit e4b6a50

Browse files
authored
Merge pull request #2948 from arik-so/2024-03-public-node-announcement-excess
Publicize all UnsignedNodeAnnouncement fields.
2 parents 5c49358 + 5f2b04b commit e4b6a50

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)