From 3d8ea90b3b29ff9affb7fbf64ac59ae8931d3ff0 Mon Sep 17 00:00:00 2001 From: Jacob Shufro Date: Thu, 4 Jul 2024 20:29:52 +0000 Subject: [PATCH] Update voting power for houston --- voting-power.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/voting-power.go b/voting-power.go index 55d0e7d..0c37c65 100644 --- a/voting-power.go +++ b/voting-power.go @@ -47,12 +47,11 @@ func getNodeVotingPower(s *state.NetworkState, ethProvided *big.Int, nodeStake * votingRpl = nodeStake } - // Now take the square root and divide by 2 + // Now take the square root // Because the units are in wei, we need to multiply votingRpl by 1 Eth before square rooting. votingPower := big.NewInt(0) votingPower.Mul(votingRpl, oneEth) votingPower.Sqrt(votingPower) - votingPower.Rsh(votingPower, 1) return votingPower }