Skip to content

Commit ce106c0

Browse files
committed
Publicize UnsignedChannelAnnouncement's excess_data.
Making the `excess_data` field public significantly simplifies writing legible unit tests for the Rapid Gossip Sync Server.
1 parent c5c5f3f commit ce106c0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lightning/src/ln/msgs.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,11 @@ pub struct UnsignedChannelAnnouncement {
973973
pub bitcoin_key_1: NodeId,
974974
/// The funding key for the second node
975975
pub bitcoin_key_2: NodeId,
976-
pub(crate) excess_data: Vec<u8>,
976+
/// Excess data which was signed as a part of the message which we do not (yet) understand how
977+
/// to decode.
978+
///
979+
/// This is stored to ensure forward-compatibility as new fields are added to the lightning gossip protocol.
980+
pub excess_data: Vec<u8>,
977981
}
978982
/// A [`channel_announcement`] message to be sent to or received from a peer.
979983
///

0 commit comments

Comments
 (0)