frostfs-node/pkg/core/version/version.go
Alex Vanin 20de74a505 Rename package name
Due to source code relocation from GitHub.

Signed-off-by: Alex Vanin <a.vanin@yadro.com>
2023-03-07 16:38:26 +03:00

17 lines
350 B
Go

package version
import (
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/version"
)
// IsValid checks if Version is not earlier than the genesis version of the FrostFS.
func IsValid(v version.Version) bool {
const (
startMajor = 2
startMinor = 7
)
mjr := v.Major()
return mjr > startMajor || mjr == startMajor && v.Minor() >= startMinor
}