X-Git-Url: http://git.osdn.net/view?p=bytom%2Fvapor.git;a=blobdiff_plain;f=asset%2Fasset_test.go;h=33b1445e890ff545e6c88eb415d52e15b7e5bca4;hp=fe85e21b093621b71fa8a26baea651543bc13d9d;hb=6375289bdf8d263dbfa00833ef982714c9c8c87f;hpb=377c4a0170dcabd0ff3accbd8846fbe4ac18731d diff --git a/asset/asset_test.go b/asset/asset_test.go index fe85e21b..33b1445e 100644 --- a/asset/asset_test.go +++ b/asset/asset_test.go @@ -14,8 +14,6 @@ import ( "github.com/vapor/common" "github.com/vapor/config" "github.com/vapor/consensus" - engine "github.com/vapor/consensus/consensus" - "github.com/vapor/consensus/consensus/dpos" "github.com/vapor/crypto/ed25519/chainkd" "github.com/vapor/database/leveldb" "github.com/vapor/protocol" @@ -155,14 +153,9 @@ func TestListAssets(t *testing.T) { } func mockChain(testDB dbm.DB) (*protocol.Chain, error) { - var engine engine.Engine - switch config.CommonConfig.Consensus.Type { - case "dpos": - engine = dpos.GDpos - } store := leveldb.NewStore(testDB) txPool := protocol.NewTxPool(store) - chain, err := protocol.NewChain(store, txPool, engine) + chain, err := protocol.NewChain(store, txPool) if err != nil { return nil, err }