|
|
@ -213,12 +213,12 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) { |
|
|
|
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) |
|
|
|
eth.miner.SetExtra(makeExtraData(config.Miner.ExtraData)) |
|
|
|
eth.miner.SetExtra(makeExtraData(config.Miner.ExtraData)) |
|
|
|
|
|
|
|
|
|
|
|
eth.APIBackend = &EthAPIBackend{ctx.ExtRPCEnabled(), eth, nil} |
|
|
|
|
|
|
|
gpoParams := config.GPO |
|
|
|
gpoParams := config.GPO |
|
|
|
if gpoParams.Default == nil { |
|
|
|
if gpoParams.Default == nil { |
|
|
|
gpoParams.Default = config.Miner.GasPrice |
|
|
|
gpoParams.Default = config.Miner.GasPrice |
|
|
|
} |
|
|
|
} |
|
|
|
eth.APIBackend.gpo = gasprice.NewOracle(eth.APIBackend, gpoParams) |
|
|
|
|
|
|
|
|
|
|
|
eth.APIBackend = &EthAPIBackend{ctx.ExtRPCEnabled(), eth, gasprice.NewOracle(eth.APIBackend, gpoParams)} |
|
|
|
|
|
|
|
|
|
|
|
return eth, nil |
|
|
|
return eth, nil |
|
|
|
} |
|
|
|
} |
|
|
|