mirror of
https://github.com/btcsuite/btcd.git
synced 2025-01-19 05:33:36 +01: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…
Reference in New Issue
Block a user