Skip to content

Commit

Permalink
refactor: add error log when iavl set failed (backport cosmos#13803) (c…
Browse files Browse the repository at this point in the history
…osmos#13804)

* refactor: add error log when iavl set failed (cosmos#13803)

* add error log when iavl set failed

Ref: cosmos#12012

* Update CHANGELOG.md

* play safe

(cherry picked from commit 22f3261)

# Conflicts:
#	CHANGELOG.md

* fix conflicts

Co-authored-by: yihuang <[email protected]>
  • Loading branch information
2 people authored and JeancarloBarrios committed Sep 28, 2024
1 parent a2148b1 commit 8858021
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
### Bug Fixes

* (x/gov) [#13728](https://github.com/cosmos/cosmos-sdk/pull/13728) Fix propagation of message events to the current context in `EndBlocker`.
* (store) [#13803](https://github.com/cosmos/cosmos-sdk/pull/13803) Add an error log if iavl set operation failed.

## [v0.46.4](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.46.4) - 2022-11-01

Expand Down
10 changes: 4 additions & 6 deletions store/iavl/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ var (

// Store Implements types.KVStore and CommitKVStore.
type Store struct {
tree Tree
logger types.Logger
metrics metrics.StoreMetrics
tree Tree
logger log.Logger
}

// LoadStore returns an IAVL Store as a CommitKVStore. Internally, it will load the
Expand Down Expand Up @@ -89,9 +88,8 @@ func LoadStoreWithInitialVersion(db dbm.DB, logger log.Logger, key types.StoreKe
}

return &Store{
tree: tree,
logger: logger,
metrics: metrics,
tree: tree,
logger: logger,
}, nil
}

Expand Down

0 comments on commit 8858021

Please sign in to comment.