mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-23 19:37:27 +08:00
* roll up v2.0.1-b2 to develop * b2-fixed * adjust return data of fast sync so it doesn't return the earliest frame * -b3 * fix: announce peer based on leading frame, not initial frame; fix: looping bug * fix: last batch fails due to underflow; qol: make logging chattier * -b4 * resolve frame cache issue * fix: mint loop + re-migrate * fix: register execution panic * fix: mint loop, other side * fix: handle unexpected return of nil status * final -b4 * handle subtle change to migration * qol: add heuristic to handle corruption scenario * bump genesis * qol: use separate channel for worker * final parameterization, parallelize streams * deprecate signers 10, 11, 14, 17 * adjust signatory check size to match rotated out signers
45 lines
705 B
Go
45 lines
705 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, 0x01}
|
|
}
|
|
|
|
func GetVersion() []byte {
|
|
return []byte{0x02, 0x00, 0x01}
|
|
}
|
|
|
|
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 0x00
|
|
}
|
|
|
|
func GetRCNumber() byte {
|
|
return 0x04
|
|
}
|