diff options
author | gary rong <garyrong0905@gmail.com> | 2018-09-20 20:09:30 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-09-20 20:09:30 +0800 |
commit | d6254f827bf493c1471a806b7b8a0e9b86c8c420 (patch) | |
tree | e8cd05de67e506ee1b1b12d2b9468952179d1670 /core/genesis_test.go | |
parent | f89dce0126f92eb5f3245f6b8e8b1e3ac13641b3 (diff) | |
download | dexon-d6254f827bf493c1471a806b7b8a0e9b86c8c420.tar.gz dexon-d6254f827bf493c1471a806b7b8a0e9b86c8c420.tar.zst dexon-d6254f827bf493c1471a806b7b8a0e9b86c8c420.zip |
all: protect self-mined block during reorg (#17656)
Diffstat (limited to 'core/genesis_test.go')
-rw-r--r-- | core/genesis_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/genesis_test.go b/core/genesis_test.go index 2d7f94f8f..c7d54f205 100644 --- a/core/genesis_test.go +++ b/core/genesis_test.go @@ -120,7 +120,7 @@ func TestSetupGenesis(t *testing.T) { // Advance to block #4, past the homestead transition block of customg. genesis := oldcustomg.MustCommit(db) - bc, _ := NewBlockChain(db, nil, oldcustomg.Config, ethash.NewFullFaker(), vm.Config{}) + bc, _ := NewBlockChain(db, nil, oldcustomg.Config, ethash.NewFullFaker(), vm.Config{}, nil) defer bc.Stop() blocks, _ := GenerateChain(oldcustomg.Config, genesis, ethash.NewFaker(), db, 4, nil) |