From 0815a987ada8264036c4a1fc7ba99c5e8431734a Mon Sep 17 00:00:00 2001 From: Rongjian Lan Date: Fri, 5 Feb 2021 10:13:01 -0800 Subject: [PATCH] give testnet internal node enough voting power until epoch 74330 --- consensus/votepower/roster.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consensus/votepower/roster.go b/consensus/votepower/roster.go index 89b8a7569..8ddfd6879 100644 --- a/consensus/votepower/roster.go +++ b/consensus/votepower/roster.go @@ -185,7 +185,7 @@ func Compute(subComm *shard.Committee, epoch *big.Int) (*Roster, error) { // Testnet incident recovery // Make harmony nodes having 70% voting power for epoch 73314 if nodeconfig.GetDefaultConfig().GetNetworkType() == nodeconfig.Testnet && epoch.Cmp(big.NewInt(73305)) >= 0 && - epoch.Cmp(big.NewInt(73330)) <= 0 { + epoch.Cmp(big.NewInt(74330)) <= 0 { harmonyPercent = numeric.MustNewDecFromStr("0.70") externalPercent = numeric.MustNewDecFromStr("0.40") // Make sure consensus is always good. } @@ -225,7 +225,7 @@ func Compute(subComm *shard.Committee, epoch *big.Int) (*Roster, error) { } if !(nodeconfig.GetDefaultConfig().GetNetworkType() == nodeconfig.Testnet && epoch.Cmp(big.NewInt(73305)) >= 0 && - epoch.Cmp(big.NewInt(73330)) <= 0) { + epoch.Cmp(big.NewInt(74330)) <= 0) { // NOTE Enforce voting power sums to one, // give diff (expect tiny amt) to last staked voter