aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorbojie <bojie@dexon.org>2019-03-11 17:43:52 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commit390b0f5aa6d7a5127a04b8949815033d59608e7b (patch)
tree240c9999c6b84028645bdd83891da10708fe8499 /eth
parent2af2607585ee7145fe49d8ab4eba400dddad942d (diff)
downloaddexon-390b0f5aa6d7a5127a04b8949815033d59608e7b.tar
dexon-390b0f5aa6d7a5127a04b8949815033d59608e7b.tar.gz
dexon-390b0f5aa6d7a5127a04b8949815033d59608e7b.tar.bz2
dexon-390b0f5aa6d7a5127a04b8949815033d59608e7b.tar.lz
dexon-390b0f5aa6d7a5127a04b8949815033d59608e7b.tar.xz
dexon-390b0f5aa6d7a5127a04b8949815033d59608e7b.tar.zst
dexon-390b0f5aa6d7a5127a04b8949815033d59608e7b.zip
app: new app test flow (#244)
Diffstat (limited to 'eth')
-rw-r--r--eth/helper_test.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/eth/helper_test.go b/eth/helper_test.go
index e4d7a28fb..9a30afef3 100644
--- a/eth/helper_test.go
+++ b/eth/helper_test.go
@@ -30,7 +30,6 @@ import (
"github.com/dexon-foundation/dexon/common"
"github.com/dexon-foundation/dexon/consensus/ethash"
"github.com/dexon-foundation/dexon/core"
- "github.com/dexon-foundation/dexon/core/rawdb"
"github.com/dexon-foundation/dexon/core/types"
"github.com/dexon-foundation/dexon/core/vm"
"github.com/dexon-foundation/dexon/crypto"
@@ -62,9 +61,6 @@ func newTestProtocolManager(mode downloader.SyncMode, blocks int, generator func
genesis = gspec.MustCommit(db)
blockchain, _ = core.NewBlockChain(db, nil, gspec.Config, engine, vm.Config{}, nil)
)
- if err := rawdb.WriteLastRoundNumber(db, 0); err != nil {
- panic(err)
- }
chain, _ := core.GenerateChain(gspec.Config, genesis, ethash.NewFaker(), db, blocks, generator)
if _, err := blockchain.InsertChain(chain); err != nil {
panic(err)