|
@@ -222,7 +222,10 @@ func New(stack *node.Node, config *ethconfig.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{stack.Config().ExtRPCEnabled(), eth, nil}
|
|
|
|
|
|
|
+ eth.APIBackend = &EthAPIBackend{stack.Config().ExtRPCEnabled(), stack.Config().AllowUnprotectedTxs, eth, nil}
|
|
|
|
|
+ if eth.APIBackend.allowUnprotectedTxs {
|
|
|
|
|
+ log.Info("Unprotected transactions allowed")
|
|
|
|
|
+ }
|
|
|
gpoParams := config.GPO
|
|
gpoParams := config.GPO
|
|
|
if gpoParams.Default == nil {
|
|
if gpoParams.Default == nil {
|
|
|
gpoParams.Default = config.Miner.GasPrice
|
|
gpoParams.Default = config.Miner.GasPrice
|