From 9989865fa2f6268b22b15c4054732dfe2b36c87e Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Sat, 27 Jul 2013 15:25:05 -0500 Subject: [PATCH] Use correct max block payload size. The maximum block payload size is actually 1000000 bytes, not 1MB. --- msgblock.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/msgblock.go b/msgblock.go index a4a3208d..5e57bf73 100644 --- a/msgblock.go +++ b/msgblock.go @@ -12,8 +12,8 @@ import ( // MaxBlocksPerMsg is the maximum number of blocks allowed per message. const MaxBlocksPerMsg = 500 -// MaxBlockPayload is the maximum bytes a block message can be. -const MaxBlockPayload = (1024 * 1024) // 1MB +// MaxBlockPayload is the maximum bytes a block message can be in bytes. +const MaxBlockPayload = 1000000 // Not actually 1MB which would be 1024 * 1024 // TxLoc holds locator data for the offset and length of where a transaction is // located within a MsgBlock data buffer.