Skip to content

Commit

Permalink
fix: pass moniker for debug log of db
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeNinjaX committed Jun 12, 2024
1 parent 169ee86 commit 1fbdcce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -203,3 +203,5 @@ retract (
// do not use
v0.43.0
)

replace github.com/cosmos/iavl => ../iavl
2 changes: 1 addition & 1 deletion store/iavl/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1fbdcce

Please sign in to comment.