aboutsummaryrefslogtreecommitdiffstats
path: root/dex/cache_test.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-12-13 11:12:59 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 13:49:59 +0800
commitac95218229e1028b8024953d420f394eb08649e5 (patch)
treed524d56d85e27cd68b7e4885a11b9661bfd2c7c5 /dex/cache_test.go
parentd74a391e275921757684af00645ccb69fc9777dd (diff)
downloaddexon-ac95218229e1028b8024953d420f394eb08649e5.tar
dexon-ac95218229e1028b8024953d420f394eb08649e5.tar.gz
dexon-ac95218229e1028b8024953d420f394eb08649e5.tar.bz2
dexon-ac95218229e1028b8024953d420f394eb08649e5.tar.lz
dexon-ac95218229e1028b8024953d420f394eb08649e5.tar.xz
dexon-ac95218229e1028b8024953d420f394eb08649e5.tar.zst
dexon-ac95218229e1028b8024953d420f394eb08649e5.zip
vendor: sync to latest core and fix conflict
Diffstat (limited to 'dex/cache_test.go')
-rw-r--r--dex/cache_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/dex/cache_test.go b/dex/cache_test.go
index 8a0066c94..3b43e77aa 100644
--- a/dex/cache_test.go
+++ b/dex/cache_test.go
@@ -23,7 +23,7 @@ import (
"testing"
coreCommon "github.com/dexon-foundation/dexon-consensus/common"
- coreBlockdb "github.com/dexon-foundation/dexon-consensus/core/blockdb"
+ coreDb "github.com/dexon-foundation/dexon-consensus/core/db"
coreTypes "github.com/dexon-foundation/dexon-consensus/core/types"
)
@@ -42,7 +42,7 @@ func (v byHash) Swap(i int, j int) {
}
func TestCacheVote(t *testing.T) {
- db, err := coreBlockdb.NewMemBackedBlockDB()
+ db, err := coreDb.NewMemBackedDB()
if err != nil {
panic(err)
}
@@ -131,7 +131,7 @@ func TestCacheVote(t *testing.T) {
}
func TestCacheBlock(t *testing.T) {
- db, err := coreBlockdb.NewMemBackedBlockDB()
+ db, err := coreDb.NewMemBackedDB()
if err != nil {
panic(err)
}
@@ -191,7 +191,7 @@ func TestCacheBlock(t *testing.T) {
block5 := &coreTypes.Block{
Hash: coreCommon.NewRandomHash(),
}
- if err := db.Put(*block5); err != nil {
+ if err := db.PutBlock(*block5); err != nil {
panic(err)
}
blocks = cache.blocks(coreCommon.Hashes{block5.Hash})