From bcd142bc307754d235482879f0a00f84a42a4e68 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Wed, 19 Apr 2017 15:09:12 -0700 Subject: [PATCH] lnwire: reduce the max message payload to 65KB from 32MB This commit reduces the max message payload to 65KB from 32MB in order to better align ourselves with current draft of the BOLT specifications. --- lnwire/message.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnwire/message.go b/lnwire/message.go index b58ebb4fc..9c538152f 100644 --- a/lnwire/message.go +++ b/lnwire/message.go @@ -19,7 +19,6 @@ const MessageHeaderSize = 12 // MaxMessagePayload is the maximum bytes a message can be regardless of other // individual limits imposed by messages themselves. -const MaxMessagePayload = 1024 * 1024 * 32 // 32MB // Commands used in lightning message headers which detail the type of message. // TODO(roasbeef): update with latest type numbering from spec @@ -34,6 +33,7 @@ const ( // Command for locking a funded channel CmdFundingLocked = uint32(200) +const MaxMessagePayload = 65535 // 65KB // Commands for the workflow of cooperatively closing an active channel. CmdCloseRequest = uint32(300)