Skip to content

Commit

Permalink
Update voting power for houston
Browse files Browse the repository at this point in the history
  • Loading branch information
jshufro committed Jul 4, 2024
1 parent 514c667 commit 3d8ea90
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions voting-power.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

}
Expand Down

0 comments on commit 3d8ea90

Please sign in to comment.