watchtower/wtwire/message: bump wtwire messages outside reserved ranges

BOLT01 reserves the following ranges:
 - Setup & Control (types 0-31)
 - Channel (types 32-127)
 - Commitment (types 128-255)
 - Routing (types 256-511)

The wtwire messages now occupy 600-607.
This commit is contained in:
Conner Fromknecht 2019-06-13 17:33:48 -07:00
parent 7cabe2667f
commit 86e1d111e5
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

@ -24,29 +24,29 @@ type MessageType uint16
// Watchtower protocol.
const (
// MsgInit identifies an encoded Init message.
MsgInit MessageType = 300
MsgInit MessageType = 600
// MsgError identifies an encoded Error message.
MsgError = 301
MsgError MessageType = 601
// MsgCreateSession identifies an encoded CreateSession message.
MsgCreateSession MessageType = 302
MsgCreateSession MessageType = 602
// MsgCreateSessionReply identifies an encoded CreateSessionReply message.
MsgCreateSessionReply MessageType = 303
MsgCreateSessionReply MessageType = 603
// MsgStateUpdate identifies an encoded StateUpdate message.
MsgStateUpdate MessageType = 304
MsgStateUpdate MessageType = 604
// MsgStateUpdateReply identifies an encoded StateUpdateReply message.
MsgStateUpdateReply MessageType = 305
MsgStateUpdateReply MessageType = 605
// MsgDeleteSession identifies an encoded DeleteSession message.
MsgDeleteSession MessageType = 306
MsgDeleteSession MessageType = 606
// MsgDeleteSessionReply identifies an encoded DeleteSessionReply
// message.
MsgDeleteSessionReply MessageType = 307
MsgDeleteSessionReply MessageType = 607
)
// String returns a human readable description of the message type.