[resharding] finalize the block per shard

Signed-off-by: Leo Chen <leo@harmony.one>
pull/1237/head
Leo Chen 5 years ago
parent c274ce3714
commit 3e1c71f73c
  1. 6
      internal/configs/sharding/mainnet.go

@ -7,8 +7,8 @@ import (
) )
const ( const (
mainnetEpochBlock1 = 288888 mainnetEpochBlock1 = 294912 // 18 * 2^14
fiveOne = 11111 blocksPerShard = 16384 // 2^14
) )
// MainnetSchedule is the mainnet sharding configuration schedule. // MainnetSchedule is the mainnet sharding configuration schedule.
@ -28,7 +28,7 @@ func (mainnetSchedule) InstanceForEpoch(epoch *big.Int) Instance {
} }
func (mainnetSchedule) BlocksPerEpoch() uint64 { func (mainnetSchedule) BlocksPerEpoch() uint64 {
return fiveOne return blocksPerShard
} }
func (ms mainnetSchedule) CalcEpochNumber(blockNum uint64) *big.Int { func (ms mainnetSchedule) CalcEpochNumber(blockNum uint64) *big.Int {

Loading…
Cancel
Save