From 0f4853169fdc57620b22ce8b795360c02efc90bd Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Sat, 8 Jan 2022 23:52:18 +0000 Subject: [PATCH] [testnet] adjust partner network parameters Signed-off-by: Leo Chen --- internal/configs/sharding/partner.go | 10 +++++----- internal/params/config.go | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/configs/sharding/partner.go b/internal/configs/sharding/partner.go index 98836966b..c04fff27b 100644 --- a/internal/configs/sharding/partner.go +++ b/internal/configs/sharding/partner.go @@ -16,8 +16,8 @@ var PartnerSchedule partnerSchedule type partnerSchedule struct{} const ( - // 10 minutes per epoch (at 8s/block) - partnerBlocksPerEpoch = 75 + // 12 hours per epoch (at 2s/block) + partnerBlocksPerEpoch = 21600 partnerVdfDifficulty = 10000 // This takes about 20s to finish the vdf @@ -73,8 +73,8 @@ func (ps partnerSchedule) IsSkippedEpoch(shardID uint32, epoch *big.Int) bool { var partnerReshardingEpoch = []*big.Int{ big.NewInt(0), - params.TestnetChainConfig.StakingEpoch, + params.PartnerChainConfig.StakingEpoch, } -var partnerV0 = MustNewInstance(2, 15, 15, numeric.OneDec(), genesis.TNHarmonyAccounts, genesis.TNFoundationalAccounts, partnerReshardingEpoch, PartnerSchedule.BlocksPerEpoch()) -var partnerV1 = MustNewInstance(2, 30, 15, numeric.MustNewDecFromStr("0.68"), genesis.TNHarmonyAccounts, genesis.TNFoundationalAccounts, partnerReshardingEpoch, PartnerSchedule.BlocksPerEpoch()) +var partnerV0 = MustNewInstance(2, 5, 5, numeric.OneDec(), genesis.TNHarmonyAccounts, genesis.TNFoundationalAccounts, partnerReshardingEpoch, PartnerSchedule.BlocksPerEpoch()) +var partnerV1 = MustNewInstance(2, 5, 4, numeric.MustNewDecFromStr("0.9"), genesis.TNHarmonyAccounts, genesis.TNFoundationalAccounts, partnerReshardingEpoch, PartnerSchedule.BlocksPerEpoch()) diff --git a/internal/params/config.go b/internal/params/config.go index d558727c5..ba289fd24 100644 --- a/internal/params/config.go +++ b/internal/params/config.go @@ -146,7 +146,7 @@ var ( QuickUnlockEpoch: big.NewInt(0), FiveSecondsEpoch: big.NewInt(0), TwoSecondsEpoch: big.NewInt(0), - SixtyPercentEpoch: big.NewInt(0), + SixtyPercentEpoch: big.NewInt(4), RedelegationEpoch: big.NewInt(0), NoEarlyUnlockEpoch: big.NewInt(0), VRFEpoch: big.NewInt(0),