From: Arik Sosman Date: Wed, 19 Jul 2023 10:02:33 +0000 (-0700) Subject: Publicize UnsignedChannelAnnouncement's excess_data. X-Git-Tag: v0.0.117-alpha1~79^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=b28769bfd12e7ab6bba3ad2b793698f6a224acd9;p=rust-lightning Publicize UnsignedChannelAnnouncement's excess_data. Making the `excess_data` field public significantly simplifies writing legible unit tests for the Rapid Gossip Sync Server. --- diff --git a/lightning/src/ln/msgs.rs b/lightning/src/ln/msgs.rs index a514f4923..0c23d4425 100644 --- a/lightning/src/ln/msgs.rs +++ b/lightning/src/ln/msgs.rs @@ -973,7 +973,11 @@ pub struct UnsignedChannelAnnouncement { pub bitcoin_key_1: NodeId, /// The funding key for the second node pub bitcoin_key_2: NodeId, - pub(crate) excess_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, } /// A [`channel_announcement`] message to be sent to or received from a peer. ///