Skip to content

Commit a7aeae2

Browse files
mergify[bot]tac0turtle
authored andcommitted
feat: add get all versions (backport cosmos#11124) (cosmos#11144)
* feat: add get all versions (cosmos#11124) * add get all versions * add changelog entry (cherry picked from commit d624a65) # Conflicts: # CHANGELOG.md * fix conflicts and remove interface break Co-authored-by: Marko <marbar3778@yahoo.com>
1 parent 8c23c2c commit a7aeae2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ Ref: https://keepachangelog.com/en/1.0.0/
3838

3939
## [Unreleased]
4040

41+
### Features
42+
43+
* [\#11124](https://github.com/cosmos/cosmos-sdk/pull/11124) Add `GetAllVersions` to application store
44+
4145
### Bug Fixes
4246

4347
* (store) [\#11117](https://github.com/cosmos/cosmos-sdk/pull/11117) Fix data race in store trace component

store/iavl/store.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ func (st *Store) VersionExists(version int64) bool {
174174

175175
// GetAllVersions returns all versions in the iavl tree
176176
func (st *Store) GetAllVersions() []int {
177-
return st.tree.AvailableVersions()
177+
return st.tree.(*iavl.MutableTree).AvailableVersions()
178178
}
179179

180-
// GetStoreType implements Store.
180+
// Implements Store.
181181
func (st *Store) GetStoreType() types.StoreType {
182182
return types.StoreTypeIAVL
183183
}

0 commit comments

Comments
 (0)