aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth
diff options
context:
space:
mode:
authorMartin Holst Swende <martin@swende.se>2018-12-11 20:19:03 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-12-11 20:19:03 +0800
commit83a9a73b899e816a0d1493b7fb1e37abe4bc4566 (patch)
treea813e0e451a7a44ee12c91e40bcd76041f793895 /cmd/geth
parent5584574217df29f5daf5db70b3d2536ec66a036c (diff)
downloaddexon-83a9a73b899e816a0d1493b7fb1e37abe4bc4566.tar
dexon-83a9a73b899e816a0d1493b7fb1e37abe4bc4566.tar.gz
dexon-83a9a73b899e816a0d1493b7fb1e37abe4bc4566.tar.bz2
dexon-83a9a73b899e816a0d1493b7fb1e37abe4bc4566.tar.lz
dexon-83a9a73b899e816a0d1493b7fb1e37abe4bc4566.tar.xz
dexon-83a9a73b899e816a0d1493b7fb1e37abe4bc4566.tar.zst
dexon-83a9a73b899e816a0d1493b7fb1e37abe4bc4566.zip
cmd/geth, core, eth: implement Constantinople override flag (#18273)
* geth/core/eth: implement constantinople override flag * les: implemnent constantinople override flag for les clients * cmd/geth, eth, les: fix typo, move flag to experimentals
Diffstat (limited to 'cmd/geth')
-rw-r--r--cmd/geth/config.go5
-rw-r--r--cmd/geth/main.go1
2 files changed, 5 insertions, 1 deletions
diff --git a/cmd/geth/config.go b/cmd/geth/config.go
index b0749d232..59f759f0e 100644
--- a/cmd/geth/config.go
+++ b/cmd/geth/config.go
@@ -21,6 +21,7 @@ import (
"errors"
"fmt"
"io"
+ "math/big"
"os"
"reflect"
"unicode"
@@ -152,7 +153,9 @@ func enableWhisper(ctx *cli.Context) bool {
func makeFullNode(ctx *cli.Context) *node.Node {
stack, cfg := makeConfigNode(ctx)
-
+ if ctx.GlobalIsSet(utils.ConstantinopleOverrideFlag.Name) {
+ cfg.Eth.ConstantinopleOverride = new(big.Int).SetUint64(ctx.GlobalUint64(utils.ConstantinopleOverrideFlag.Name))
+ }
utils.RegisterEthService(stack, &cfg.Eth)
if ctx.GlobalBool(utils.DashboardEnabledFlag.Name) {
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index fc1bf461f..ebaeba9f4 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -123,6 +123,7 @@ var (
utils.RinkebyFlag,
utils.VMEnableDebugFlag,
utils.NetworkIdFlag,
+ utils.ConstantinopleOverrideFlag,
utils.RPCCORSDomainFlag,
utils.RPCVirtualHostsFlag,
utils.EthStatsURLFlag,