From 48e25b29696c77106a39cdb3da16c818451b1e73 Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Fri, 5 Mar 2021 07:08:52 +0000 Subject: [PATCH] [testnet] re-enable 40% external voting power Re-enable 40% external power for testnet from Epoch 43490 Signed-off-by: Leo Chen --- 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 8ddfd6879..7d6a82114 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(74330)) <= 0 { + epoch.Cmp(big.NewInt(73490)) <= 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(74330)) <= 0) { + epoch.Cmp(big.NewInt(73490)) <= 0) { // NOTE Enforce voting power sums to one, // give diff (expect tiny amt) to last staked voter