Skip to content

Commit 3676d59

Browse files
committed
lnwire: define NodeAnnouncement2
In this commit, the lnwire.NodeAnnouncement2 type is defined. This will be used to represent the `node_announcement_2` message used in the Gossip 2 (1.75) protocol.
1 parent 3404d98 commit 3676d59

File tree

4 files changed

+781
-0
lines changed

4 files changed

+781
-0
lines changed

lnwire/message.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ const (
6464
MsgReplyChannelRange = 264
6565
MsgGossipTimestampRange = 265
6666
MsgChannelAnnouncement2 = 267
67+
MsgNodeAnnouncement2 = 269
6768
MsgChannelUpdate2 = 271
6869
MsgKickoffSig = 777
6970

@@ -193,6 +194,8 @@ func (t MessageType) String() string {
193194
return "MsgAnnounceSignatures2"
194195
case MsgChannelAnnouncement2:
195196
return "ChannelAnnouncement2"
197+
case MsgNodeAnnouncement2:
198+
return "NodeAnnouncement2"
196199
case MsgChannelUpdate2:
197200
return "ChannelUpdate2"
198201
default:
@@ -355,6 +358,8 @@ func makeEmptyMessage(msgType MessageType) (Message, error) {
355358
msg = &AnnounceSignatures2{}
356359
case MsgChannelAnnouncement2:
357360
msg = &ChannelAnnouncement2{}
361+
case MsgNodeAnnouncement2:
362+
msg = &NodeAnnouncement2{}
358363
case MsgChannelUpdate2:
359364
msg = &ChannelUpdate2{}
360365
default:

0 commit comments

Comments
 (0)