mirror of https://github.com/status-im/op-geth.git
p2p: decrease maximum message size for devp2p to 1kB
The previous limit was 10MB which is unacceptable for all kinds of reasons, the most important one being that we don't want to allow the remote side to make us allocate 10MB at handshake time.
This commit is contained in:
parent
7b93341836
commit
64564da20b
|
@ -18,7 +18,7 @@ import (
|
||||||
const (
|
const (
|
||||||
baseProtocolVersion = 4
|
baseProtocolVersion = 4
|
||||||
baseProtocolLength = uint64(16)
|
baseProtocolLength = uint64(16)
|
||||||
baseProtocolMaxMsgSize = 10 * 1024 * 1024
|
baseProtocolMaxMsgSize = 2 * 1024
|
||||||
|
|
||||||
pingInterval = 15 * time.Second
|
pingInterval = 15 * time.Second
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue