Skip to content

scrtlabs/cosmos-sdk-store

Repository files navigation

Cosmos-sdk -> cosmossdk.io/store@v1.0.2

cosmossdk.io/store@v1.0.2

The version of cosmossdk.io/store@v1.0.2 has an issue we have come across during the upgrade to Cosmoms-sdk 0.50.x This issue is based on the fact that during the store Write operation not every store gets updated. As a result when we call

func (rs *Store) CacheMultiStoreWithVersion(version int64) (types.CacheMultiStore, error)

a call to retrieve cacheStore here:

cacheStore, err = store.(*iavl.Store).GetImmutable(version)

fails and we cannot process multistore queries because they fail with an error:

ERR [*] Cache for error="version does not exist" module=server module store=evidence
ERR [*] Cache for error="version does not exist" module=server module store=feegrant
ERR [*] Cache for error="version does not exist" module=server module store=hooks-for-ibc
ERR [*] Cache for error="version does not exist" module=server module store=feeibc
ERR [*] Cache for error="version does not exist" module=server module store=authz
ERR [*] Cache for error="version does not exist" module=server module store=emergencybutton

We introduced a fix for CacheMultiStoreWithVersion where we bypass errors for certain modules.

About

Secret Network cosmos-sdk store v1.0.2 with fixes

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages