feat(store/v2): add SetInitialVersion in SC (#18665)
This commit is contained in:
@@ -75,6 +75,12 @@ func (t *IavlTree) GetLatestVersion() uint64 {
|
||||
return uint64(t.tree.Version())
|
||||
}
|
||||
|
||||
// SetInitialVersion sets the initial version of the database.
|
||||
func (t *IavlTree) SetInitialVersion(version uint64) error {
|
||||
t.tree.SetInitialVersion(version)
|
||||
return nil
|
||||
}
|
||||
|
||||
// Prune prunes all versions up to and including the provided version.
|
||||
func (t *IavlTree) Prune(version uint64) error {
|
||||
return t.tree.DeleteVersionsTo(int64(version))
|
||||
|
||||
Reference in New Issue
Block a user