refactor!: abstractions for snapshot and pruning; snapshot intervals eventually pruned; unit tests (#11496)

This commit is contained in:
Roman
2022-04-21 15:30:36 -04:00
committed by GitHub
parent d4dd44469f
commit 42f8d45b68
57 changed files with 2643 additions and 638 deletions
+11 -2
View File
@@ -6,6 +6,7 @@ import (
protoio "github.com/gogo/protobuf/io"
dbm "github.com/tendermint/tm-db"
pruningtypes "github.com/cosmos/cosmos-sdk/pruning/types"
snapshottypes "github.com/cosmos/cosmos-sdk/snapshots/types"
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"
@@ -65,11 +66,11 @@ func (ms multiStore) LastCommitID() storetypes.CommitID {
panic("not implemented")
}
func (ms multiStore) SetPruning(opts sdk.PruningOptions) {
func (ms multiStore) SetPruning(opts pruningtypes.PruningOptions) {
panic("not implemented")
}
func (ms multiStore) GetPruning() sdk.PruningOptions {
func (ms multiStore) GetPruning() pruningtypes.PruningOptions {
panic("not implemented")
}
@@ -113,6 +114,14 @@ func (ms multiStore) GetStoreType() storetypes.StoreType {
panic("not implemented")
}
func (ms multiStore) PruneSnapshotHeight(height int64) {
panic("not implemented")
}
func (ms multiStore) SetSnapshotInterval(snapshotInterval uint64) {
panic("not implemented")
}
func (ms multiStore) SetInterBlockCache(_ sdk.MultiStorePersistentCache) {
panic("not implemented")
}