mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
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
@ -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…
x
Reference in New Issue
Block a user