Use correct max block payload size.

The maximum block payload size is actually 1000000 bytes, not 1MB.
This commit is contained in:
Dave Collins 2013-07-27 15:25:05 -05:00
parent ea3107d962
commit 9989865fa2

View file

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