ceremonyclient/node/config/version.go

30 lines
476 B
Go
Raw Normal View History

package config
import (
"fmt"
"time"
)
func GetMinimumVersionCutoff() time.Time {
2024-05-25 05:07:57 +00:00
return time.Date(2024, time.May, 24, 4, 0, 0, 0, time.UTC)
}
func GetMinimumVersion() []byte {
2024-05-25 05:07:57 +00:00
return []byte{0x01, 0x04, 0x12}
}
func GetVersion() []byte {
2024-05-25 05:07:57 +00:00
return []byte{0x01, 0x04, 0x12}
}
func GetVersionString() string {
return FormatVersion(GetVersion())
}
func FormatVersion(version []byte) string {
2024-03-17 21:14:37 +00:00
return fmt.Sprintf(
"%d.%d.%d",
version[0], version[1], version[2],
2024-03-17 21:14:37 +00:00
)
}