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 /miner/worker_test.go | |
parent | ba0a8b7887cbaea861dca3f1408e59b88c174815 (diff) | |
download | dexon-457e930f27242381db5b5fe185c30bed9a5f2f89.tar dexon-457e930f27242381db5b5fe185c30bed9a5f2f89.tar.gz dexon-457e930f27242381db5b5fe185c30bed9a5f2f89.tar.bz2 dexon-457e930f27242381db5b5fe185c30bed9a5f2f89.tar.lz dexon-457e930f27242381db5b5fe185c30bed9a5f2f89.tar.xz 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 'miner/worker_test.go')
-rw-r--r-- | miner/worker_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miner/worker_test.go b/miner/worker_test.go index 6d85dda83..db0ff4340 100644 --- a/miner/worker_test.go +++ b/miner/worker_test.go @@ -133,7 +133,7 @@ func (b *testWorkerBackend) PostChainEvents(events []interface{}) { func newTestWorker(t *testing.T, chainConfig *params.ChainConfig, engine consensus.Engine, blocks int) (*worker, *testWorkerBackend) { backend := newTestWorkerBackend(t, chainConfig, engine, blocks) backend.txPool.AddLocals(pendingTxs) - w := newWorker(chainConfig, engine, backend, new(event.TypeMux), time.Second, params.GenesisGasLimit, params.GenesisGasLimit) + w := newWorker(chainConfig, engine, backend, new(event.TypeMux), time.Second, params.GenesisGasLimit, params.GenesisGasLimit, nil) w.setEtherbase(testBankAddress) return w, backend } |