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:
parent
7cabe2667f
commit
86e1d111e5
@ -24,29 +24,29 @@ type MessageType uint16
|
|||||||
// Watchtower protocol.
|
// Watchtower protocol.
|
||||||
const (
|
const (
|
||||||
// MsgInit identifies an encoded Init message.
|
// MsgInit identifies an encoded Init message.
|
||||||
MsgInit MessageType = 300
|
MsgInit MessageType = 600
|
||||||
|
|
||||||
// MsgError identifies an encoded Error message.
|
// MsgError identifies an encoded Error message.
|
||||||
MsgError = 301
|
MsgError MessageType = 601
|
||||||
|
|
||||||
// MsgCreateSession identifies an encoded CreateSession message.
|
// MsgCreateSession identifies an encoded CreateSession message.
|
||||||
MsgCreateSession MessageType = 302
|
MsgCreateSession MessageType = 602
|
||||||
|
|
||||||
// MsgCreateSessionReply identifies an encoded CreateSessionReply message.
|
// MsgCreateSessionReply identifies an encoded CreateSessionReply message.
|
||||||
MsgCreateSessionReply MessageType = 303
|
MsgCreateSessionReply MessageType = 603
|
||||||
|
|
||||||
// MsgStateUpdate identifies an encoded StateUpdate message.
|
// MsgStateUpdate identifies an encoded StateUpdate message.
|
||||||
MsgStateUpdate MessageType = 304
|
MsgStateUpdate MessageType = 604
|
||||||
|
|
||||||
// MsgStateUpdateReply identifies an encoded StateUpdateReply message.
|
// MsgStateUpdateReply identifies an encoded StateUpdateReply message.
|
||||||
MsgStateUpdateReply MessageType = 305
|
MsgStateUpdateReply MessageType = 605
|
||||||
|
|
||||||
// MsgDeleteSession identifies an encoded DeleteSession message.
|
// MsgDeleteSession identifies an encoded DeleteSession message.
|
||||||
MsgDeleteSession MessageType = 306
|
MsgDeleteSession MessageType = 606
|
||||||
|
|
||||||
// MsgDeleteSessionReply identifies an encoded DeleteSessionReply
|
// MsgDeleteSessionReply identifies an encoded DeleteSessionReply
|
||||||
// message.
|
// message.
|
||||||
MsgDeleteSessionReply MessageType = 307
|
MsgDeleteSessionReply MessageType = 607
|
||||||
)
|
)
|
||||||
|
|
||||||
// String returns a human readable description of the message type.
|
// String returns a human readable description of the message type.
|
||||||
|
Loading…
Reference in New Issue
Block a user