Use correct max block payload size.
The maximum block payload size is actually 1000000 bytes, not 1MB.
This commit is contained in:
parent
ea3107d962
commit
9989865fa2
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue