From 86e1d111e5fe0c268adc14fdae036964532bf396 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Thu, 13 Jun 2019 17:33:48 -0700 Subject: [PATCH] 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. --- watchtower/wtwire/message.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/watchtower/wtwire/message.go b/watchtower/wtwire/message.go index 192a397c..2b3d2288 100644 --- a/watchtower/wtwire/message.go +++ b/watchtower/wtwire/message.go @@ -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.