mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-12-25 08:05:17 +00:00
41 lines
663 B
Go
41 lines
663 B
Go
package config
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
)
|
|
|
|
func GetMinimumVersionCutoff() time.Time {
|
|
return time.Date(2024, time.October, 12, 11, 0, 0, 0, time.UTC)
|
|
}
|
|
|
|
func GetMinimumVersion() []byte {
|
|
return []byte{0x02, 0x00, 0x00}
|
|
}
|
|
|
|
func GetVersion() []byte {
|
|
return []byte{0x02, 0x00, 0x00}
|
|
}
|
|
|
|
func GetVersionString() string {
|
|
return FormatVersion(GetVersion())
|
|
}
|
|
|
|
func FormatVersion(version []byte) string {
|
|
if len(version) == 3 {
|
|
return fmt.Sprintf(
|
|
"%d.%d.%d",
|
|
version[0], version[1], version[2],
|
|
)
|
|
} else {
|
|
return fmt.Sprintf(
|
|
"%d.%d.%d-p%d",
|
|
version[0], version[1], version[2], version[3],
|
|
)
|
|
}
|
|
}
|
|
|
|
func GetPatchNumber() byte {
|
|
return 0x04
|
|
}
|