@ -167,6 +167,11 @@ var (
Name : "dev.period" ,
Name : "dev.period" ,
Usage : "Block period to use in developer mode (0 = mine only if transaction pending)" ,
Usage : "Block period to use in developer mode (0 = mine only if transaction pending)" ,
}
}
DeveloperGasLimitFlag = cli . Uint64Flag {
Name : "dev.gaslimit" ,
Usage : "Initial block gas limit" ,
Value : 11500000 ,
}
IdentityFlag = cli . StringFlag {
IdentityFlag = cli . StringFlag {
Name : "identity" ,
Name : "identity" ,
Usage : "Custom node name" ,
Usage : "Custom node name" ,
@ -1661,7 +1666,7 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
log . Info ( "Using developer account" , "address" , developer . Address )
log . Info ( "Using developer account" , "address" , developer . Address )
// Create a new developer genesis block or reuse existing one
// Create a new developer genesis block or reuse existing one
cfg . Genesis = core . DeveloperGenesisBlock ( uint64 ( ctx . GlobalInt ( DeveloperPeriodFlag . Name ) ) , developer . Address )
cfg . Genesis = core . DeveloperGenesisBlock ( uint64 ( ctx . GlobalInt ( DeveloperPeriodFlag . Name ) ) , ctx . GlobalUint64 ( DeveloperGasLimitFlag . Name ) , developer . Address )
if ctx . GlobalIsSet ( DataDirFlag . Name ) {
if ctx . GlobalIsSet ( DataDirFlag . Name ) {
// Check if we have an already initialized chain and fall back to
// Check if we have an already initialized chain and fall back to
// that if so. Otherwise we need to generate a new genesis spec.
// that if so. Otherwise we need to generate a new genesis spec.