From 3e1c71f73c6025757580a0f0f8e2ce911cc743e1 Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Wed, 24 Jul 2019 20:22:57 -0700 Subject: [PATCH] [resharding] finalize the block per shard Signed-off-by: Leo Chen --- internal/configs/sharding/mainnet.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/configs/sharding/mainnet.go b/internal/configs/sharding/mainnet.go index f6ea4598a..4069dd4d5 100644 --- a/internal/configs/sharding/mainnet.go +++ b/internal/configs/sharding/mainnet.go @@ -7,8 +7,8 @@ import ( ) const ( - mainnetEpochBlock1 = 288888 - fiveOne = 11111 + mainnetEpochBlock1 = 294912 // 18 * 2^14 + blocksPerShard = 16384 // 2^14 ) // MainnetSchedule is the mainnet sharding configuration schedule. @@ -28,7 +28,7 @@ func (mainnetSchedule) InstanceForEpoch(epoch *big.Int) Instance { } func (mainnetSchedule) BlocksPerEpoch() uint64 { - return fiveOne + return blocksPerShard } func (ms mainnetSchedule) CalcEpochNumber(blockNum uint64) *big.Int {