From 1241ece48ca698787d55f4302be793914a674ef9 Mon Sep 17 00:00:00 2001 From: Rongjian Lan Date: Tue, 4 Feb 2020 17:04:07 -0800 Subject: [PATCH] Fix testnet config for staking (#2182) * Add one-off block verification rule for beacon chain bad block * Add more comment * Fix testnet config --- internal/configs/sharding/testnet.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/configs/sharding/testnet.go b/internal/configs/sharding/testnet.go index 635f05a57..7c5b0492c 100644 --- a/internal/configs/sharding/testnet.go +++ b/internal/configs/sharding/testnet.go @@ -27,7 +27,7 @@ const ( func (testnetSchedule) InstanceForEpoch(epoch *big.Int) Instance { switch { - case epoch.Cmp(params.PangaeaChainConfig.StakingEpoch) >= 0: + case epoch.Cmp(params.TestnetChainConfig.StakingEpoch) >= 0: return testnetV1 default: // genesis return testnetV0 @@ -77,8 +77,8 @@ func (ts testnetSchedule) GetShardingStructure(numShard, shardID int) []map[stri var testnetReshardingEpoch = []*big.Int{ big.NewInt(0), - params.PangaeaChainConfig.StakingEpoch, + params.TestnetChainConfig.StakingEpoch, } var testnetV0 = MustNewInstance(3, 10, 7, genesis.TNHarmonyAccounts, genesis.TNFoundationalAccounts, testnetReshardingEpoch, TestnetSchedule.BlocksPerEpoch()) -var testnetV1 = MustNewInstance(3, 10, 3, genesis.TNHarmonyAccounts, genesis.TNFoundationalAccounts, testnetReshardingEpoch, TestnetSchedule.BlocksPerEpoch()) +var testnetV1 = MustNewInstance(3, 20, 7, genesis.TNHarmonyAccounts, genesis.TNFoundationalAccounts, testnetReshardingEpoch, TestnetSchedule.BlocksPerEpoch())