p2p: snappy encoding for devp2p (version bump to 5) (#15106)

* p2p: snappy encoding for devp2p (version bump to 5)

* p2p: remove lazy decompression, enforce 16MB limit
This commit is contained in:
Péter Szilágyi
2017-09-26 16:54:49 +03:00
committed by GitHub
parent 2b4a5f2677
commit 2ee885958b
2 changed files with 45 additions and 1 deletions

View File

@@ -32,10 +32,12 @@ import (
)
const (
baseProtocolVersion = 4
baseProtocolVersion = 5
baseProtocolLength = uint64(16)
baseProtocolMaxMsgSize = 2 * 1024
snappyProtocolVersion = 5
pingInterval = 15 * time.Second
)