[epoch] adjust the first epoch block number on mainnet

Signed-off-by: Leo Chen <leo@harmony.one>
pull/1266/head
Leo Chen 5 years ago
parent 533f8bbd12
commit 4bf01db495
  1. 4
      internal/configs/sharding/mainnet.go

@ -7,7 +7,7 @@ import (
)
const (
mainnetEpochBlock1 = 327680 // 20 * 2^14
mainnetEpochBlock1 = 344064 // 21 * 2^14
blocksPerShard = 16384 // 2^14
mainnetV1Epoch = 1
)
@ -20,7 +20,7 @@ type mainnetSchedule struct{}
func (mainnetSchedule) InstanceForEpoch(epoch *big.Int) Instance {
switch {
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
default: // genesis
return mainnetV0

Loading…
Cancel
Save