diff --git a/go.mod b/go.mod index 0596a1cff9..e92b2f86ed 100644 --- a/go.mod +++ b/go.mod @@ -203,3 +203,5 @@ retract ( // do not use v0.43.0 ) + +replace github.com/cosmos/iavl => ../iavl diff --git a/store/iavl/store.go b/store/iavl/store.go index 77f6113805..9240d92c3a 100644 --- a/store/iavl/store.go +++ b/store/iavl/store.go @@ -52,7 +52,7 @@ func LoadStore(db dbm.DB, logger log.Logger, key types.StoreKey, id types.Commit // provided DB. An error is returned if the version fails to load, or if called with a positive // version on an empty tree. func LoadStoreWithInitialVersion(db dbm.DB, logger log.Logger, key types.StoreKey, id types.CommitID, lazyLoading bool, initialVersion uint64, cacheSize int, disableFastNode bool) (types.CommitKVStore, error) { - tree, err := iavl.NewMutableTreeWithOpts(db, cacheSize, &iavl.Options{InitialVersion: initialVersion}, disableFastNode) + tree, err := iavl.NewMutableTreeWithOpts(db, cacheSize, &iavl.Options{InitialVersion: initialVersion}, disableFastNode, key.Name()) if err != nil { return nil, err }