@ -140,6 +140,10 @@ var (
Name : "rinkeby" ,
Name : "rinkeby" ,
Usage : "Rinkeby network: pre-configured proof-of-authority test network" ,
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 {
DeveloperFlag = cli . BoolFlag {
Name : "dev" ,
Name : "dev" ,
Usage : "Ephemeral proof-of-authority network with a pre-funded developer account, mining enabled" ,
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 ) {
if ctx . GlobalIsSet ( NetworkIdFlag . Name ) {
cfg . NetworkId = ctx . GlobalUint64 ( NetworkIdFlag . Name )
cfg . NetworkId = ctx . GlobalUint64 ( NetworkIdFlag . Name )
}
}
if ctx . GlobalIsSet ( CacheFlag . Name ) || ctx . GlobalIsSet ( CacheDatabaseFlag . Name ) {
if ctx . GlobalIsSet ( CacheFlag . Name ) || ctx . GlobalIsSet ( CacheDatabaseFlag . Name ) {
cfg . DatabaseCache = ctx . GlobalInt ( CacheFlag . Name ) * ctx . GlobalInt ( CacheDatabaseFlag . Name ) / 100
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 ) {
func MakeChain ( ctx * cli . Context , stack * node . Node ) ( chain * core . BlockChain , chainDb ethdb . Database ) {
var err error
var err error
chainDb = MakeChainDatabase ( ctx , stack )
chainDb = MakeChainDatabase ( ctx , stack )
config , _ , err := core . SetupGenesisBlock ( chainDb , MakeGenesis ( ctx ) )
config , _ , err := core . SetupGenesisBlock ( chainDb , MakeGenesis ( ctx ) )
if err != nil {
if err != nil {
Fatalf ( "%v" , err )
Fatalf ( "%v" , err )