lnwire: add AnnounceSignatures2 message
And ensure that it implements the AnnounceSignatures interface.
This commit is contained in:
4 files changed
+149
No files matched your search
@@ -52,6 +52,7 @@ const (
|
||||
MsgNodeAnnouncement = 257
|
||||
MsgChannelUpdate = 258
|
||||
MsgAnnounceSignatures = 259
|
||||
MsgAnnounceSignatures2 = 260
|
||||
MsgQueryShortChanIDs = 261
|
||||
MsgReplyShortChanIDsEnd = 262
|
||||
MsgQueryChannelRange = 263
|
||||
@@ -155,6 +156,8 @@ func (t MessageType) String() string {
|
||||
return "ClosingComplete"
|
||||
case MsgClosingSig:
|
||||
return "ClosingSig"
|
||||
case MsgAnnounceSignatures2:
|
||||
return "MsgAnnounceSignatures2"
|
||||
default:
|
||||
return "<unknown>"
|
||||
}
|
||||
@@ -284,6 +287,8 @@ func makeEmptyMessage(msgType MessageType) (Message, error) {
|
||||
msg = &ClosingComplete{}
|
||||
case MsgClosingSig:
|
||||
msg = &ClosingSig{}
|
||||
case MsgAnnounceSignatures2:
|
||||
msg = &AnnounceSignatures2{}
|
||||
default:
|
||||
// If the message is not within our custom range and has not
|
||||
// specifically been overridden, return an unknown message.
|
||||
|
||||
Reference in new issue
Block a user