From d09d514858a5d74294b7e8b9825e864272c93e85 Mon Sep 17 00:00:00 2001 From: nsa Date: Thu, 7 Feb 2019 13:19:54 -0500 Subject: [PATCH] lnwire: include init prefix in MaxPayloadLength calculation --- lnwire/init_message.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnwire/init_message.go b/lnwire/init_message.go index 34c8b63fe..f64f9f8ca 100644 --- a/lnwire/init_message.go +++ b/lnwire/init_message.go @@ -63,5 +63,5 @@ func (msg *Init) MsgType() MessageType { // // This is part of the lnwire.Message interface. func (msg *Init) MaxPayloadLength(uint32) uint32 { - return 2 + maxAllowedSize + 2 + maxAllowedSize + return 2 + 2 + maxAllowedSize + 2 + maxAllowedSize }