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
+3 -3
View File
@@ -6,11 +6,11 @@ import (
"encoding/json"
"fmt"
dbm "github.com/tendermint/tm-db"
"github.com/tendermint/tendermint/abci/example/code"
"github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/version"
dbm "github.com/tendermint/tm-db"
"github.com/tendermint/tm-db/memdb"
)
var (
@@ -71,7 +71,7 @@ type Application struct {
}
func NewApplication() *Application {
state := loadState(dbm.NewMemDB())
state := loadState(memdb.NewDB())
return &Application{state: state}
}
+2 -3
View File
@@ -7,13 +7,12 @@ import (
"strconv"
"strings"
dbm "github.com/tendermint/tm-db"
"github.com/tendermint/tendermint/abci/example/code"
"github.com/tendermint/tendermint/abci/types"
cryptoenc "github.com/tendermint/tendermint/crypto/encoding"
"github.com/tendermint/tendermint/libs/log"
pc "github.com/tendermint/tendermint/proto/tendermint/crypto"
"github.com/tendermint/tm-db/goleveldb"
)
const (
@@ -37,7 +36,7 @@ type PersistentKVStoreApplication struct {
func NewPersistentKVStoreApplication(dbDir string) *PersistentKVStoreApplication {
name := "kvstore"
db, err := dbm.NewGoLevelDB(name, dbDir)
db, err := goleveldb.NewDB(name, dbDir)
if err != nil {
panic(err)
}