frostfs-node/pkg/core/version/version.go
Pavel Karpy 923f84722a Move to frostfs-node
Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
2022-12-28 15:04:29 +03:00

17 lines
342 B
Go

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