|
|
@ -7,7 +7,7 @@ import ( |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
const ( |
|
|
|
const ( |
|
|
|
mainnetEpochBlock1 = 327680 // 20 * 2^14
|
|
|
|
mainnetEpochBlock1 = 344064 // 21 * 2^14
|
|
|
|
blocksPerShard = 16384 // 2^14
|
|
|
|
blocksPerShard = 16384 // 2^14
|
|
|
|
mainnetV1Epoch = 1 |
|
|
|
mainnetV1Epoch = 1 |
|
|
|
) |
|
|
|
) |
|
|
@ -20,7 +20,7 @@ type mainnetSchedule struct{} |
|
|
|
func (mainnetSchedule) InstanceForEpoch(epoch *big.Int) Instance { |
|
|
|
func (mainnetSchedule) InstanceForEpoch(epoch *big.Int) Instance { |
|
|
|
switch { |
|
|
|
switch { |
|
|
|
case epoch.Cmp(big.NewInt(mainnetV1Epoch)) >= 0: |
|
|
|
case epoch.Cmp(big.NewInt(mainnetV1Epoch)) >= 0: |
|
|
|
// first resharding epoch around 07/29/2019 7:30am PDT
|
|
|
|
// first resharding epoch around 07/30/2019 10:30pm PDT
|
|
|
|
return mainnetV1 |
|
|
|
return mainnetV1 |
|
|
|
default: // genesis
|
|
|
|
default: // genesis
|
|
|
|
return mainnetV0 |
|
|
|
return mainnetV0 |
|
|
|