all: update tm-db to 0.6.5

This commit is contained in:
Tess Rinearson
2021-08-06 11:46:34 +02:00
parent 823f2acb14
commit 97fd8f136e
46 changed files with 243 additions and 245 deletions
+2 -2
View File
@@ -10,7 +10,6 @@ import (
"github.com/fortytw2/leaktest"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
dbm "github.com/tendermint/tm-db"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/config"
@@ -25,6 +24,7 @@ import (
smmocks "github.com/tendermint/tendermint/state/mocks"
"github.com/tendermint/tendermint/store"
"github.com/tendermint/tendermint/types"
"github.com/tendermint/tm-db/memdb"
)
type reactorTestSuite struct {
@@ -119,7 +119,7 @@ func setup(
)
rts.stateStore = &smmocks.Store{}
rts.blockStore = store.NewBlockStore(dbm.NewMemDB())
rts.blockStore = store.NewBlockStore(memdb.NewDB())
cfg := config.DefaultStateSyncConfig()
+3 -4
View File
@@ -6,8 +6,6 @@ import (
"strings"
"time"
dbm "github.com/tendermint/tm-db"
tmsync "github.com/tendermint/tendermint/internal/libs/sync"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/light"
@@ -18,6 +16,7 @@ import (
rpchttp "github.com/tendermint/tendermint/rpc/client/http"
sm "github.com/tendermint/tendermint/state"
"github.com/tendermint/tendermint/types"
"github.com/tendermint/tm-db/memdb"
)
//go:generate ../../scripts/mockery_generate.sh StateProvider
@@ -71,7 +70,7 @@ func NewLightClientStateProvider(
}
lc, err := light.NewClient(ctx, chainID, trustOptions, providers[0], providers[1:],
lightdb.New(dbm.NewMemDB()), light.Logger(logger))
lightdb.New(memdb.NewDB()), light.Logger(logger))
if err != nil {
return nil, err
}
@@ -105,7 +104,7 @@ func NewLightClientStateProviderFromDispatcher(
}
lc, err := light.NewClient(ctx, chainID, trustOptions, providers[0], providers[1:],
lightdb.New(dbm.NewMemDB()), light.Logger(logger))
lightdb.New(memdb.NewDB()), light.Logger(logger))
if err != nil {
return nil, err
}