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/utils/flags.go | |
parent | 5584574217df29f5daf5db70b3d2536ec66a036c (diff) | |
download | dexon-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/utils/flags.go')
-rw-r--r-- | cmd/utils/flags.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index c9115d7a3..60e45d095 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -140,6 +140,10 @@ var ( Name: "rinkeby", Usage: "Rinkeby network: pre-configured proof-of-authority test network", } + ConstantinopleOverrideFlag = cli.Uint64Flag{ + Name: "override.constantinople", + Usage: "Manually specify constantinople fork-block, overriding the bundled setting", + } DeveloperFlag = cli.BoolFlag{ Name: "dev", Usage: "Ephemeral proof-of-authority network with a pre-funded developer account, mining enabled", @@ -1178,7 +1182,6 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *eth.Config) { if ctx.GlobalIsSet(NetworkIdFlag.Name) { cfg.NetworkId = ctx.GlobalUint64(NetworkIdFlag.Name) } - if ctx.GlobalIsSet(CacheFlag.Name) || ctx.GlobalIsSet(CacheDatabaseFlag.Name) { cfg.DatabaseCache = ctx.GlobalInt(CacheFlag.Name) * ctx.GlobalInt(CacheDatabaseFlag.Name) / 100 } @@ -1403,7 +1406,6 @@ func MakeGenesis(ctx *cli.Context) *core.Genesis { func MakeChain(ctx *cli.Context, stack *node.Node) (chain *core.BlockChain, chainDb ethdb.Database) { var err error chainDb = MakeChainDatabase(ctx, stack) - config, _, err := core.SetupGenesisBlock(chainDb, MakeGenesis(ctx)) if err != nil { Fatalf("%v", err) |