From 5b7abee92e6eca28a63a4327e043123a10873f29 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 28 Nov 2017 12:15:21 -0800 Subject: [PATCH] lnwire: correct incorrect type numbers for UpdateFee, Shutdown, and ClosingSigned In this commit we correct an off by one error on the Shutdown and ClosingSigned message types. Additionally, we fix an error related to the numbering of the UpdateFee message. With this we, gain proper compatibility with the other implementations when it comes to commitment hygiene, and also the cooperative closure process. --- lnwire/message.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lnwire/message.go b/lnwire/message.go index 4963eef7b..2d2e5ce3e 100644 --- a/lnwire/message.go +++ b/lnwire/message.go @@ -32,16 +32,16 @@ const ( MsgFundingCreated = 34 MsgFundingSigned = 35 MsgFundingLocked = 36 - MsgShutdown = 39 - MsgClosingSigned = 40 + MsgShutdown = 38 + MsgClosingSigned = 39 MsgUpdateAddHTLC = 128 MsgUpdateFufillHTLC = 130 MsgUpdateFailHTLC = 131 MsgCommitSig = 132 MsgRevokeAndAck = 133 + MsgUpdateFee = 134 MsgUpdateFailMalformedHTLC = 135 MsgChannelReestablish = 136 - MsgUpdateFee = 137 MsgChannelAnnouncement = 256 MsgNodeAnnouncement = 257 MsgChannelUpdate = 258