lnwire: add wire type for stfu

This commit is contained in:
Keagan McClelland committed 2024-08-05 17:22:56 -07:00
1 parent c262b1b5a5
commit 0176fca826
4 files changed
+107

No files matched your search

+5
View File
@@ -23,6 +23,7 @@ type MessageType uint16
// Lightning protocol.
const (
MsgWarning MessageType = 1
MsgStfu = 2
MsgInit = 16
MsgError = 17
MsgPing = 18
@@ -84,6 +85,8 @@ func (t MessageType) String() string {
switch t {
case MsgWarning:
return "Warning"
case MsgStfu:
return "Stfu"
case MsgInit:
return "Init"
case MsgOpenChannel:
@@ -211,6 +214,8 @@ func makeEmptyMessage(msgType MessageType) (Message, error) {
switch msgType {
case MsgWarning:
msg = &Warning{}
case MsgStfu:
msg = &Stfu{}
case MsgInit:
msg = &Init{}
case MsgOpenChannel: