aboutsummaryrefslogtreecommitdiffstats
path: root/miner/worker_test.go
diff options
context:
space:
mode:
authorgary rong <garyrong0905@gmail.com>2018-09-20 20:09:30 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-09-20 20:09:30 +0800
commitd6254f827bf493c1471a806b7b8a0e9b86c8c420 (patch)
treee8cd05de67e506ee1b1b12d2b9468952179d1670 /miner/worker_test.go
parentf89dce0126f92eb5f3245f6b8e8b1e3ac13641b3 (diff)
downloaddexon-d6254f827bf493c1471a806b7b8a0e9b86c8c420.tar
dexon-d6254f827bf493c1471a806b7b8a0e9b86c8c420.tar.gz
dexon-d6254f827bf493c1471a806b7b8a0e9b86c8c420.tar.bz2
dexon-d6254f827bf493c1471a806b7b8a0e9b86c8c420.tar.lz
dexon-d6254f827bf493c1471a806b7b8a0e9b86c8c420.tar.xz
dexon-d6254f827bf493c1471a806b7b8a0e9b86c8c420.tar.zst
dexon-d6254f827bf493c1471a806b7b8a0e9b86c8c420.zip
all: protect self-mined block during reorg (#17656)
Diffstat (limited to 'miner/worker_test.go')
-rw-r--r--miner/worker_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/miner/worker_test.go b/miner/worker_test.go
index ad10d48ef..6d85dda83 100644
--- a/miner/worker_test.go
+++ b/miner/worker_test.go
@@ -96,7 +96,7 @@ func newTestWorkerBackend(t *testing.T, chainConfig *params.ChainConfig, engine
}
genesis := gspec.MustCommit(db)
- chain, _ := core.NewBlockChain(db, nil, gspec.Config, engine, vm.Config{})
+ chain, _ := core.NewBlockChain(db, nil, gspec.Config, engine, vm.Config{}, nil)
txpool := core.NewTxPool(testTxPoolConfig, chainConfig, chain)
// Generate a small n-block chain and an uncle block for it