aboutsummaryrefslogtreecommitdiffstats
path: root/core/bench_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 /core/bench_test.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/bench_test.go')
-rw-r--r--core/bench_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/bench_test.go b/core/bench_test.go
index 8d95456e9..53cba0517 100644
--- a/core/bench_test.go
+++ b/core/bench_test.go
@@ -175,7 +175,7 @@ func benchInsertChain(b *testing.B, disk bool, gen func(int, *BlockGen)) {
// Time the insertion of the new chain.
// State and blocks are stored in the same DB.
- chainman, _ := NewBlockChain(db, nil, gspec.Config, ethash.NewFaker(), vm.Config{})
+ chainman, _ := NewBlockChain(db, nil, gspec.Config, ethash.NewFaker(), vm.Config{}, nil)
defer chainman.Stop()
b.ReportAllocs()
b.ResetTimer()
@@ -287,7 +287,7 @@ func benchReadChain(b *testing.B, full bool, count uint64) {
if err != nil {
b.Fatalf("error opening database at %v: %v", dir, err)
}
- chain, err := NewBlockChain(db, nil, params.TestChainConfig, ethash.NewFaker(), vm.Config{})
+ chain, err := NewBlockChain(db, nil, params.TestChainConfig, ethash.NewFaker(), vm.Config{}, nil)
if err != nil {
b.Fatalf("error creating chain: %v", err)
}