mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-14 06:48:20 +00:00
Enable DeveloperPeriodFlag (#2838)
Setting a period !=0 allows mining of empty blocks
This commit is contained in:
parent
839e0c9d28
commit
a477aaadd9
@ -1310,6 +1310,7 @@ func SetEthConfig(ctx *cli.Context, nodeConfig *node.Config, cfg *ethconfig.Conf
|
||||
|
||||
// Create a new developer genesis block or reuse existing one
|
||||
cfg.Genesis = core.DeveloperGenesisBlock(uint64(ctx.GlobalInt(DeveloperPeriodFlag.Name)), developer)
|
||||
log.Info("Using custom developer period", "seconds", cfg.Genesis.Config.Clique.Period)
|
||||
if !ctx.GlobalIsSet(MinerGasPriceFlag.Name) {
|
||||
cfg.Miner.GasPrice = big.NewInt(1)
|
||||
}
|
||||
|
@ -63,6 +63,7 @@ var DefaultFlags = []cli.Flag{
|
||||
utils.StaticPeersFlag,
|
||||
utils.MaxPeersFlag,
|
||||
utils.ChainFlag,
|
||||
utils.DeveloperPeriodFlag,
|
||||
utils.VMEnableDebugFlag,
|
||||
utils.NetworkIdFlag,
|
||||
utils.FakePoWFlag,
|
||||
|
Loading…
Reference in New Issue
Block a user