@@ -120,10 +120,6 @@ type MultiStore interface {
120120 // call CacheMultiStore.Write().
121121 CacheMultiStore () CacheMultiStore
122122
123- // CacheMultiStoreWithVersion branches the underlying MultiStore where
124- // each stored is loaded at a specific version (height).
125- CacheMultiStoreWithVersion (version int64 ) (CacheMultiStore , error )
126-
127123 // Convenience for fetching substores.
128124 // If the store does not exist, panics.
129125 GetStore (StoreKey ) Store
@@ -142,6 +138,14 @@ type MultiStore interface {
142138 // implied that the caller should update the context when necessary between
143139 // tracing operations. The modified MultiStore is returned.
144140 SetTracingContext (TraceContext ) MultiStore
141+ }
142+
143+ type RootMultiStore interface {
144+ MultiStore
145+
146+ // CacheMultiStoreWithVersion branches the underlying MultiStore where
147+ // each stored is loaded at a specific version (height).
148+ CacheMultiStoreWithVersion (version int64 ) (CacheMultiStore , error )
145149
146150 // LatestVersion returns the latest version in the store
147151 LatestVersion () int64
@@ -156,7 +160,7 @@ type CacheMultiStore interface {
156160// CommitMultiStore is an interface for a MultiStore without cache capabilities.
157161type CommitMultiStore interface {
158162 Committer
159- MultiStore
163+ RootMultiStore
160164 snapshottypes.Snapshotter
161165
162166 // Mount a store of type using the given db.
0 commit comments