From b28769bfd12e7ab6bba3ad2b793698f6a224acd9 Mon Sep 17 00:00:00 2001 From: Arik Sosman Date: Wed, 19 Jul 2023 03:02:33 -0700 Subject: [PATCH] Publicize UnsignedChannelAnnouncement's excess_data. Making the `excess_data` field public significantly simplifies writing legible unit tests for the Rapid Gossip Sync Server. --- lightning/src/ln/msgs.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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. /// -- 2.39.5