give testnet internal node enough voting power until epoch 74330

pull/3536/head
Rongjian Lan 4 years ago committed by Leo Chen
parent 9fd7b27715
commit 0815a987ad
  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(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

Loading…
Cancel
Save