aboutsummaryrefslogtreecommitdiffstats
path: root/eth/protocol.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-06-26 21:54:27 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-07-01 00:00:00 +0800
commit393d675690923207746ac800568faacae723f251 (patch)
tree9cd743d6f58f34c6635248979f3b45b458b721f4 /eth/protocol.go
parentba95e445e16481ea7a94a462347def19b0c2bf2c (diff)
downloadgo-tangerine-393d675690923207746ac800568faacae723f251.tar.gz
go-tangerine-393d675690923207746ac800568faacae723f251.tar.zst
go-tangerine-393d675690923207746ac800568faacae723f251.zip
cmd/geth, cmd/utils, eth: advertise both eth/60 and eth/61
Diffstat (limited to 'eth/protocol.go')
-rw-r--r--eth/protocol.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/eth/protocol.go b/eth/protocol.go
index 57805d9bd..56409721b 100644
--- a/eth/protocol.go
+++ b/eth/protocol.go
@@ -7,11 +7,15 @@ import (
"github.com/ethereum/go-ethereum/core/types"
)
+// Supported versions of the eth protocol (first is primary).
+var ProtocolVersions = []uint{61, 60}
+
+// Number of implemented message corresponding to different protocol versions.
+var ProtocolLengths = []uint64{9, 8}
+
const (
- ProtocolVersion = 60
NetworkId = 0
- ProtocolLength = uint64(8)
- ProtocolMaxMsgSize = 10 * 1024 * 1024
+ ProtocolMaxMsgSize = 10 * 1024 * 1024 // Maximum cap on the size of a protocol message
)
// eth protocol message codes
@@ -24,6 +28,7 @@ const (
GetBlocksMsg
BlocksMsg
NewBlockMsg
+ BlockHashesFromNumbers
)
type errCode int