chore: iavl-v0.20-alpha1 and cosmos-db (#14411)

Co-authored-by: marbar3778 <marbar3778@yahoo.com>
This commit is contained in:
Jacob Gadikian
2022-12-28 21:42:00 +01:00
committed by GitHub
co-authored by marbar3778
parent 829c487de8
commit 1bb0629846
95 changed files with 1279 additions and 864 deletions
+1 -1
View File
@@ -3,10 +3,10 @@ package rootmulti
import (
"testing"
dbm "github.com/cosmos/cosmos-db"
"github.com/stretchr/testify/require"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/libs/log"
dbm "github.com/tendermint/tm-db"
"github.com/cosmos/cosmos-sdk/store/iavl"
"github.com/cosmos/cosmos-sdk/store/types"
+1 -1
View File
@@ -13,13 +13,13 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
dbm "github.com/cosmos/cosmos-db"
"github.com/cosmos/cosmos-sdk/store/iavl"
"github.com/cosmos/cosmos-sdk/store/rootmulti"
"github.com/cosmos/cosmos-sdk/store/snapshots"
snapshottypes "github.com/cosmos/cosmos-sdk/store/snapshots/types"
"github.com/cosmos/cosmos-sdk/store/types"
"github.com/tendermint/tendermint/libs/log"
dbm "github.com/tendermint/tm-db"
)
func newMultiStoreWithGeneratedData(db dbm.DB, stores uint8, storeKeys uint64) *rootmulti.Store {
+2 -2
View File
@@ -9,12 +9,12 @@ import (
"strings"
"sync"
dbm "github.com/cosmos/cosmos-db"
protoio "github.com/cosmos/gogoproto/io"
gogotypes "github.com/cosmos/gogoproto/types"
iavltree "github.com/cosmos/iavl"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/libs/log"
dbm "github.com/tendermint/tm-db"
sdkerrors "cosmossdk.io/errors"
"github.com/cosmos/cosmos-sdk/store/cachemulti"
@@ -788,7 +788,7 @@ func (rs *Store) Snapshot(height uint64, protoWriter protoio.Writer) error {
for {
node, err := exporter.Next()
if err == iavltree.ExportDone {
if err == iavltree.ErrorExportDone {
break
} else if err != nil {
return err
+1 -1
View File
@@ -6,10 +6,10 @@ import (
"testing"
"time"
dbm "github.com/cosmos/cosmos-db"
"github.com/stretchr/testify/require"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/libs/log"
dbm "github.com/tendermint/tm-db"
"github.com/cosmos/cosmos-sdk/store/cachemulti"
"github.com/cosmos/cosmos-sdk/store/iavl"