From 0b86c01067bc13f74f3f300e7d5fac5e3db2ae49 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 12 Jul 2016 17:07:34 -0700 Subject: [PATCH] lnwire: fix CommitSignature max payload length This commit increase the max allowed payload length for the CommitSignature method in order to account for the added 8 byte log index. --- lnwire/commit_signature.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lnwire/commit_signature.go b/lnwire/commit_signature.go index fc6d49127..5747b363b 100644 --- a/lnwire/commit_signature.go +++ b/lnwire/commit_signature.go @@ -101,8 +101,8 @@ func (c *CommitSignature) Command() uint32 { // // This is part of the lnwire.Message interface. func (c *CommitSignature) MaxPayloadLength(uint32) uint32 { - // 36 + 8 + 73 - return 117 + // 36 + 8 + 8 + 73 + return 125 } // Validate performs any necessary sanity checks to ensure all fields present