Skip to content

Commit 8eb8331

Browse files
committed
lnwire: add NodeAnnouncement2
1 parent 1b5c49c commit 8eb8331

File tree

5 files changed

+608
-2
lines changed

5 files changed

+608
-2
lines changed

lnwire/channel_announcement_2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func (c *ChannelAnnouncement2) AllRecords() []tlv.Record {
8787
return ProduceRecordsSorted(recordProducers...)
8888
}
8989

90-
func (c *ChannelAnnouncement2) allNonSignatureRecordProducers() []tlv.RecordProducer {
90+
func (c *ChannelAnnouncement2) allNonSignatureRecordProducers() []tlv.RecordProducer { //nolint:ll
9191
// The chain-hash record is only included if it is _not_ equal to the
9292
// bitcoin mainnet genisis block hash.
9393
var recordProducers []tlv.RecordProducer

lnwire/message.go

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

@@ -190,6 +191,8 @@ func (t MessageType) String() string {
190191
return "MsgAnnounceSignatures2"
191192
case MsgChannelAnnouncement2:
192193
return "ChannelAnnouncement2"
194+
case MsgNodeAnnouncement2:
195+
return "NodeAnnouncement2"
193196
case MsgChannelUpdate2:
194197
return "ChannelUpdate2"
195198
default:
@@ -350,6 +353,8 @@ func makeEmptyMessage(msgType MessageType) (Message, error) {
350353
msg = &AnnounceSignatures2{}
351354
case MsgChannelAnnouncement2:
352355
msg = &ChannelAnnouncement2{}
356+
case MsgNodeAnnouncement2:
357+
msg = &NodeAnnouncement2{}
353358
case MsgChannelUpdate2:
354359
msg = &ChannelUpdate2{}
355360
default:

0 commit comments

Comments
 (0)