Made ShareVersion an uint8 instead of int to match Monero hardfork version

This commit is contained in:
DataHoarder 2023-07-25 08:57:03 +02:00
parent fc1a6d2ab0
commit f9903f096d
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk
2 changed files with 6 additions and 6 deletions

View file

@ -99,17 +99,17 @@ var stageNetHardForks = []HardFork{
}
var p2poolMainNetHardForks = []HardFork{
{1, 0, 0, 0},
{uint8(ShareVersion_V1), 0, 0, 0},
// p2pool hardforks at 2023-03-18 21:00 UTC
{2, 0, 0, 1679173200},
{uint8(ShareVersion_V2), 0, 0, 1679173200},
}
var p2poolTestNetHardForks = []HardFork{
{1, 0, 0, 0},
{uint8(ShareVersion_V1), 0, 0, 0},
// p2pool hardforks at 2023-01-23 21:00 UTC
{2, 0, 0, 1674507600},
{uint8(ShareVersion_V2), 0, 0, 1674507600},
//alternate hardfork at 2023-03-07 20:00 UTC 1678219200
//{2, 0, 0, 1678219200},
//{uint8(ShareVersion_V2), 0, 0, 1678219200},
}
var p2poolStageNetHardForks = []HardFork{

View file

@ -35,7 +35,7 @@ const (
// PoolBlockMaxTemplateSize Max P2P message size (128 KB) minus BLOCK_RESPONSE header (5 bytes)
const PoolBlockMaxTemplateSize = 128*1024 - (1 + 4)
type ShareVersion int
type ShareVersion uint8
func (v ShareVersion) String() string {
switch v {