ceremonyclient/node/config/version.go
Marius Scurtescu d6460bc521
extract version logic to config package (#107)
* Modify the wrong default volumes value to /root/.config (#109)

* move extract version logic to new version.go in config package

* update version extraction command

---------

Co-authored-by: talentbuilder <talentbuilder@163.com>
2024-03-12 20:29:40 -05:00

23 lines
403 B
Go

package config
import (
"fmt"
"time"
)
func GetMinimumVersionCutoff() time.Time {
return time.Date(2024, time.March, 10, 5, 30, 0, 0, time.UTC)
}
func GetMinimumVersion() []byte {
return []byte{0x01, 0x04, 0x05}
}
func GetVersion() []byte {
return []byte{0x01, 0x04, 0x06}
}
func GetVersionString() string {
return fmt.Sprintf("%d.%d.%d", GetVersion()[0], GetVersion()[1], GetVersion()[2])
}