diff options
author | bojie <bojie@dexon.org> | 2019-03-11 17:43:52 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:22 +0800 |
commit | 8ffc8f2b78bfb3cc352f71ca569ad6c09bda1461 (patch) | |
tree | 3c54d34e573b97ed4120a33bc5d6593e618a9d49 /eth | |
parent | 04cb64b849988c1cf71fd66a3142f01e8ba7cb23 (diff) | |
download | go-tangerine-8ffc8f2b78bfb3cc352f71ca569ad6c09bda1461.tar go-tangerine-8ffc8f2b78bfb3cc352f71ca569ad6c09bda1461.tar.gz go-tangerine-8ffc8f2b78bfb3cc352f71ca569ad6c09bda1461.tar.bz2 go-tangerine-8ffc8f2b78bfb3cc352f71ca569ad6c09bda1461.tar.lz go-tangerine-8ffc8f2b78bfb3cc352f71ca569ad6c09bda1461.tar.xz go-tangerine-8ffc8f2b78bfb3cc352f71ca569ad6c09bda1461.tar.zst go-tangerine-8ffc8f2b78bfb3cc352f71ca569ad6c09bda1461.zip |
app: new app test flow (#244)
Diffstat (limited to 'eth')
-rw-r--r-- | eth/helper_test.go | 4 |
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) |