aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_makers.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 /core/chain_makers.go
parentf89dce0126f92eb5f3245f6b8e8b1e3ac13641b3 (diff)
downloadgo-tangerine-d6254f827bf493c1471a806b7b8a0e9b86c8c420.tar
go-tangerine-d6254f827bf493c1471a806b7b8a0e9b86c8c420.tar.gz
go-tangerine-d6254f827bf493c1471a806b7b8a0e9b86c8c420.tar.bz2
go-tangerine-d6254f827bf493c1471a806b7b8a0e9b86c8c420.tar.lz
go-tangerine-d6254f827bf493c1471a806b7b8a0e9b86c8c420.tar.xz
go-tangerine-d6254f827bf493c1471a806b7b8a0e9b86c8c420.tar.zst
go-tangerine-d6254f827bf493c1471a806b7b8a0e9b86c8c420.zip
all: protect self-mined block during reorg (#17656)
Diffstat (limited to 'core/chain_makers.go')
-rw-r--r--core/chain_makers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/chain_makers.go b/core/chain_makers.go
index 351673477..0bc453fdf 100644
--- a/core/chain_makers.go
+++ b/core/chain_makers.go
@@ -177,7 +177,7 @@ func GenerateChain(config *params.ChainConfig, parent *types.Block, engine conse
genblock := func(i int, parent *types.Block, statedb *state.StateDB) (*types.Block, types.Receipts) {
// TODO(karalabe): This is needed for clique, which depends on multiple blocks.
// It's nonetheless ugly to spin up a blockchain here. Get rid of this somehow.
- blockchain, _ := NewBlockChain(db, nil, config, engine, vm.Config{})
+ blockchain, _ := NewBlockChain(db, nil, config, engine, vm.Config{}, nil)
defer blockchain.Stop()
b := &BlockGen{i: i, parent: parent, chain: blocks, chainReader: blockchain, statedb: statedb, config: config, engine: engine}