From: Arik Sosman Date: Tue, 19 Mar 2024 15:34:05 +0000 (-0700) Subject: Publicize all UnsignedNodeAnnouncement fields. X-Git-Tag: v0.0.123-beta~36^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=5f2b04badf31dd54e6f393816da404e4ff126ee8;p=rust-lightning Publicize all UnsignedNodeAnnouncement fields. This is necessary for RGSS tests to create new announcements. --- diff --git a/lightning/src/ln/msgs.rs b/lightning/src/ln/msgs.rs index d291ac866..260d39a5a 100644 --- a/lightning/src/ln/msgs.rs +++ b/lightning/src/ln/msgs.rs @@ -1136,8 +1136,16 @@ pub struct UnsignedNodeAnnouncement { pub alias: NodeAlias, /// List of addresses on which this node is reachable pub addresses: Vec, - pub(crate) excess_address_data: Vec, - pub(crate) excess_data: Vec, + /// Excess address data which was signed as a part of the message which we do not (yet) understand how + /// to decode. + /// + /// This is stored to ensure forward-compatibility as new address types are added to the lightning gossip protocol. + pub excess_address_data: Vec, + /// Excess data which was signed as a part of the message which we do not (yet) understand how + /// to decode. + /// + /// This is stored to ensure forward-compatibility as new fields are added to the lightning gossip protocol. + pub excess_data: Vec, } #[derive(Clone, Debug, Hash, PartialEq, Eq)] /// A [`node_announcement`] message to be sent to or received from a peer.