From be626df68973439f266a086ec3435846fe10e54a Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Wed, 2 Dec 2020 06:07:53 +0800 Subject: [PATCH] peer: use MaxMessagePayload instead of hard coding --- lnwire/error.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnwire/error.go b/lnwire/error.go index c9fa39a8..a6588b3e 100644 --- a/lnwire/error.go +++ b/lnwire/error.go @@ -124,7 +124,7 @@ func (c *Error) MsgType() MessageType { // This is part of the lnwire.Message interface. func (c *Error) MaxPayloadLength(uint32) uint32 { // 32 + 2 + 65501 - return 65535 + return MaxMessagePayload } // isASCII is a helper method that checks whether all bytes in `data` would be