ceremonyclient/node/config/version.go
2024-04-04 14:16:34 -05:00

30 lines
478 B
Go

package config
import (
"fmt"
"time"
)
func GetMinimumVersionCutoff() time.Time {
return time.Date(2024, time.April, 4, 6, 20, 0, 0, time.UTC)
}
func GetMinimumVersion() []byte {
return []byte{0x01, 0x04, 0x0F}
}
func GetVersion() []byte {
return []byte{0x01, 0x04, 0x0F}
}
func GetVersionString() string {
return FormatVersion(GetVersion())
}
func FormatVersion(version []byte) string {
return fmt.Sprintf(
"%d.%d.%d",
version[0], version[1], version[2],
)
}