diff options
author | Determinant <[email protected]> | 2019-08-14 15:19:28 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-08-14 15:19:28 -0400 |
commit | 499f682b48f914ed4af0e32ba446dd0cf56e96b4 (patch) | |
tree | 62bbe47ce4f1de674fbca9c16709c98e729b08ec /eth/backend.go | |
parent | 485da638c7b3ecd2e23299252848d99258fb6727 (diff) |
allow manual block generation
Diffstat (limited to 'eth/backend.go')
-rw-r--r-- | eth/backend.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/backend.go b/eth/backend.go index 16780cc..d99c099 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -214,7 +214,7 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) { if eth.protocolManager, err = NewProtocolManager(chainConfig, checkpoint, config.SyncMode, config.NetworkId, eth.eventMux, eth.txPool, eth.engine, eth.blockchain, chainDb, cacheLimit, config.Whitelist); err != nil { return nil, err } - eth.miner = miner.New(eth, &config.Miner, chainConfig, eth.EventMux(), eth.engine, eth.isLocalBlock) + eth.miner = miner.New(eth, &config.Miner, chainConfig, eth.EventMux(), eth.engine, eth.isLocalBlock, config.Miner.ManualMining) eth.miner.SetExtra(makeExtraData(config.Miner.ExtraData)) eth.APIBackend = &EthAPIBackend{ctx.ExtRPCEnabled(), eth, nil} |