From f590b30f737fd967a9f1d19a2bc760de861f48d9 Mon Sep 17 00:00:00 2001 From: Eugene Kim Date: Wed, 4 Dec 2019 23:52:16 -0800 Subject: [PATCH] =?UTF-8?q?Reduce=20Harmony=20seats=20from=2080=20?= =?UTF-8?q?=E2=86=92=2068=20at=20staking=20epoch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/configs/sharding/testnet.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/configs/sharding/testnet.go b/internal/configs/sharding/testnet.go index 9e069bb70..63a40ff8b 100644 --- a/internal/configs/sharding/testnet.go +++ b/internal/configs/sharding/testnet.go @@ -4,6 +4,7 @@ import ( "math/big" "github.com/harmony-one/harmony/internal/genesis" + "github.com/harmony-one/harmony/internal/params" ) // TestnetSchedule is the long-running public testnet sharding @@ -26,6 +27,8 @@ const ( func (testnetSchedule) InstanceForEpoch(epoch *big.Int) Instance { switch { + case epoch.Cmp(params.PangaeaChainConfig.StakingEpoch) >= 0: + return testnetV1 default: // genesis return testnetV0 } @@ -74,6 +77,8 @@ func (ts testnetSchedule) GetShardingStructure(numShard, shardID int) []map[stri var testnetReshardingEpoch = []*big.Int{ big.NewInt(0), + params.PangaeaChainConfig.StakingEpoch, } var testnetV0 = MustNewInstance(3, 100, 80, genesis.TNHarmonyAccounts, genesis.TNFoundationalAccounts, testnetReshardingEpoch) +var testnetV1 = MustNewInstance(3, 100, 68, genesis.TNHarmonyAccounts, genesis.TNFoundationalAccounts, testnetReshardingEpoch)