aboutsummaryrefslogtreecommitdiffstats
path: root/eth/filters/filter_test.go
diff options
context:
space:
mode:
authorgary rong <garyrong0905@gmail.com>2017-12-22 20:37:50 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-12-22 20:37:50 +0800
commit5f8888e11606296c9582496974c0f6b96a882146 (patch)
treeef8139ff20ae33eb5a236290d5107dd808e34340 /eth/filters/filter_test.go
parent9dbb8ef4aadb8e40aef8b681cf86acd20789abdc (diff)
downloadgo-tangerine-5f8888e11606296c9582496974c0f6b96a882146.tar
go-tangerine-5f8888e11606296c9582496974c0f6b96a882146.tar.gz
go-tangerine-5f8888e11606296c9582496974c0f6b96a882146.tar.bz2
go-tangerine-5f8888e11606296c9582496974c0f6b96a882146.tar.lz
go-tangerine-5f8888e11606296c9582496974c0f6b96a882146.tar.xz
go-tangerine-5f8888e11606296c9582496974c0f6b96a882146.tar.zst
go-tangerine-5f8888e11606296c9582496974c0f6b96a882146.zip
accounts, consensus, core, eth: make chain maker consensus agnostic (#15497)
* accounts, consensus, core, eth: make chain maker consensus agnostic * consensus, core: move CalcDifficulty to Engine interface * consensus: add docs for calcDifficulty function * consensus, core: minor comment fixups
Diffstat (limited to 'eth/filters/filter_test.go')
-rw-r--r--eth/filters/filter_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/eth/filters/filter_test.go b/eth/filters/filter_test.go
index 11235e95a..729d0afc8 100644
--- a/eth/filters/filter_test.go
+++ b/eth/filters/filter_test.go
@@ -24,6 +24,7 @@ import (
"testing"
"github.com/ethereum/go-ethereum/common"
+ "github.com/ethereum/go-ethereum/consensus/ethash"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
@@ -65,7 +66,7 @@ func BenchmarkFilters(b *testing.B) {
defer db.Close()
genesis := core.GenesisBlockForTesting(db, addr1, big.NewInt(1000000))
- chain, receipts := core.GenerateChain(params.TestChainConfig, genesis, db, 100010, func(i int, gen *core.BlockGen) {
+ chain, receipts := core.GenerateChain(params.TestChainConfig, genesis, ethash.NewFaker(), db, 100010, func(i int, gen *core.BlockGen) {
switch i {
case 2403:
receipt := makeReceipt(addr1)
@@ -132,7 +133,7 @@ func TestFilters(t *testing.T) {
defer db.Close()
genesis := core.GenesisBlockForTesting(db, addr, big.NewInt(1000000))
- chain, receipts := core.GenerateChain(params.TestChainConfig, genesis, db, 1000, func(i int, gen *core.BlockGen) {
+ chain, receipts := core.GenerateChain(params.TestChainConfig, genesis, ethash.NewFaker(), db, 1000, func(i int, gen *core.BlockGen) {
switch i {
case 1:
receipt := types.NewReceipt(nil, false, new(big.Int))