diff options
author | Martin Holst Swende <martin@swende.se> | 2018-12-11 20:19:03 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-12-11 20:19:03 +0800 |
commit | 83a9a73b899e816a0d1493b7fb1e37abe4bc4566 (patch) | |
tree | a813e0e451a7a44ee12c91e40bcd76041f793895 /cmd/geth/config.go | |
parent | 5584574217df29f5daf5db70b3d2536ec66a036c (diff) | |
download | go-tangerine-83a9a73b899e816a0d1493b7fb1e37abe4bc4566.tar go-tangerine-83a9a73b899e816a0d1493b7fb1e37abe4bc4566.tar.gz go-tangerine-83a9a73b899e816a0d1493b7fb1e37abe4bc4566.tar.bz2 go-tangerine-83a9a73b899e816a0d1493b7fb1e37abe4bc4566.tar.lz go-tangerine-83a9a73b899e816a0d1493b7fb1e37abe4bc4566.tar.xz go-tangerine-83a9a73b899e816a0d1493b7fb1e37abe4bc4566.tar.zst go-tangerine-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/config.go')
-rw-r--r-- | cmd/geth/config.go | 5 |
1 files changed, 4 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) { |