aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorgary rong <garyrong0905@gmail.com>2018-09-21 05:11:55 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-09-21 05:11:55 +0800
commit457e930f27242381db5b5fe185c30bed9a5f2f89 (patch)
tree3be747f0aef76b6d3c5dbd009cc9cecf09c79d25 /eth
parentba0a8b7887cbaea861dca3f1408e59b88c174815 (diff)
downloaddexon-457e930f27242381db5b5fe185c30bed9a5f2f89.tar.gz
dexon-457e930f27242381db5b5fe185c30bed9a5f2f89.tar.zst
dexon-457e930f27242381db5b5fe185c30bed9a5f2f89.zip
eth, miner: prefer locally generated uncles vs remote ones (#17715)
* core, eth: fix dependency cycle * eth, miner: perfer to locally generated uncle
Diffstat (limited to 'eth')
-rw-r--r--eth/backend.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/backend.go b/eth/backend.go
index ca0b13eed..b555b064a 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -177,7 +177,7 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) {
return nil, err
}
- eth.miner = miner.New(eth, eth.chainConfig, eth.EventMux(), eth.engine, config.MinerRecommit, config.MinerGasFloor, config.MinerGasCeil)
+ eth.miner = miner.New(eth, eth.chainConfig, eth.EventMux(), eth.engine, config.MinerRecommit, config.MinerGasFloor, config.MinerGasCeil, eth.isLocalBlock)
eth.miner.SetExtra(makeExtraData(config.MinerExtraData))
eth.APIBackend = &EthAPIBackend{eth, nil}