diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-09-26 21:54:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-26 21:54:49 +0800 |
commit | 2ee885958b49f8a58c0a7fae8bc62f4561f8ab3f (patch) | |
tree | cfc7a35299a947e5c7c0361226744d71575e9ebe /p2p/peer.go | |
parent | 2b4a5f2677fdf0d8a34a2d19fddc203b973dfe02 (diff) | |
download | dexon-2ee885958b49f8a58c0a7fae8bc62f4561f8ab3f.tar dexon-2ee885958b49f8a58c0a7fae8bc62f4561f8ab3f.tar.gz dexon-2ee885958b49f8a58c0a7fae8bc62f4561f8ab3f.tar.bz2 dexon-2ee885958b49f8a58c0a7fae8bc62f4561f8ab3f.tar.lz dexon-2ee885958b49f8a58c0a7fae8bc62f4561f8ab3f.tar.xz dexon-2ee885958b49f8a58c0a7fae8bc62f4561f8ab3f.tar.zst dexon-2ee885958b49f8a58c0a7fae8bc62f4561f8ab3f.zip |
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
Diffstat (limited to 'p2p/peer.go')
-rw-r--r-- | p2p/peer.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/p2p/peer.go b/p2p/peer.go index ebf7490c6..1d2b726e8 100644 --- a/p2p/peer.go +++ b/p2p/peer.go @@ -32,10 +32,12 @@ import ( ) const ( - baseProtocolVersion = 4 + baseProtocolVersion = 5 baseProtocolLength = uint64(16) baseProtocolMaxMsgSize = 2 * 1024 + snappyProtocolVersion = 5 + pingInterval = 15 * time.Second ) |