[testnet] re-enable 40% external voting power

Re-enable 40% external power for testnet from Epoch 43490

Signed-off-by: Leo Chen <leo@harmony.one>
pull/3573/head
Leo Chen 4 years ago
parent 19d8daaae7
commit 48e25b2969
  1. 4
      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

Loading…
Cancel
Save