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.
This commit is contained in:
Olaoluwa Osuntokun 2017-04-19 15:09:12 -07:00
parent c8d978261b
commit bcd142bc30
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -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)