diff options
author | gary rong <garyrong0905@gmail.com> | 2018-09-21 05:11:55 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-09-21 05:11:55 +0800 |
commit | 457e930f27242381db5b5fe185c30bed9a5f2f89 (patch) | |
tree | 3be747f0aef76b6d3c5dbd009cc9cecf09c79d25 /eth | |
parent | ba0a8b7887cbaea861dca3f1408e59b88c174815 (diff) | |
download | go-tangerine-457e930f27242381db5b5fe185c30bed9a5f2f89.tar go-tangerine-457e930f27242381db5b5fe185c30bed9a5f2f89.tar.gz go-tangerine-457e930f27242381db5b5fe185c30bed9a5f2f89.tar.bz2 go-tangerine-457e930f27242381db5b5fe185c30bed9a5f2f89.tar.lz go-tangerine-457e930f27242381db5b5fe185c30bed9a5f2f89.tar.xz go-tangerine-457e930f27242381db5b5fe185c30bed9a5f2f89.tar.zst go-tangerine-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.go | 2 |
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} |