mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-11-11 02:35:18 +00:00
35561a9e41
* v1.4.19-p1 * remove integrity check from startup
34 lines
520 B
Go
34 lines
520 B
Go
package config
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
)
|
|
|
|
func GetMinimumVersionCutoff() time.Time {
|
|
return time.Date(2024, time.May, 8, 5, 0, 0, 0, time.UTC)
|
|
}
|
|
|
|
func GetMinimumVersion() []byte {
|
|
return []byte{0x01, 0x04, 0x13}
|
|
}
|
|
|
|
func GetVersion() []byte {
|
|
return []byte{0x01, 0x04, 0x13}
|
|
}
|
|
|
|
func GetVersionString() string {
|
|
return FormatVersion(GetVersion())
|
|
}
|
|
|
|
func FormatVersion(version []byte) string {
|
|
return fmt.Sprintf(
|
|
"%d.%d.%d",
|
|
version[0], version[1], version[2],
|
|
)
|
|
}
|
|
|
|
func GetPatchNumber() byte {
|
|
return 0x01
|
|
}
|