mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-31 20:18:37 +00:00
eth/protocols/eth: fix protocol message length
This commit is contained in:
parent
4983e4372c
commit
e41650a24b
1 changed files with 3 additions and 3 deletions
|
|
@ -44,7 +44,7 @@ var ProtocolVersions = []uint{ETH72, ETH69}
|
||||||
|
|
||||||
// protocolLengths are the number of implemented message corresponding to
|
// protocolLengths are the number of implemented message corresponding to
|
||||||
// different protocol versions.
|
// different protocol versions.
|
||||||
var protocolLengths = map[uint]uint64{ETH69: 18, ETH72: 20}
|
var protocolLengths = map[uint]uint64{ETH69: 18, ETH72: 22}
|
||||||
|
|
||||||
// maxMessageSize is the maximum cap on the size of a protocol message.
|
// maxMessageSize is the maximum cap on the size of a protocol message.
|
||||||
const maxMessageSize = 10 * 1024 * 1024
|
const maxMessageSize = 10 * 1024 * 1024
|
||||||
|
|
@ -67,8 +67,8 @@ const (
|
||||||
GetReceiptsMsg = 0x0f
|
GetReceiptsMsg = 0x0f
|
||||||
ReceiptsMsg = 0x10
|
ReceiptsMsg = 0x10
|
||||||
BlockRangeUpdateMsg = 0x11
|
BlockRangeUpdateMsg = 0x11
|
||||||
GetCellsMsg = 0x12
|
GetCellsMsg = 0x14
|
||||||
CellsMsg = 0x13
|
CellsMsg = 0x15
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue