lnrpc: receive custom message
This commit is contained in:
16 files changed
+4406
-3836
No files matched your search
+6
-1
@@ -233,7 +233,12 @@ func makeEmptyMessage(msgType MessageType) (Message, error) {
|
||||
case MsgGossipTimestampRange:
|
||||
msg = &GossipTimestampRange{}
|
||||
default:
|
||||
return nil, &UnknownMessage{msgType}
|
||||
if msgType < CustomTypeStart {
|
||||
return nil, &UnknownMessage{msgType}
|
||||
}
|
||||
msg = &Custom{
|
||||
Type: msgType,
|
||||
}
|
||||
}
|
||||
|
||||
return msg, nil
|
||||
|
||||
Reference in new issue
Block a user