Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 committed Nov 13, 2023
1 parent c66b7c8 commit e853ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus/parlia/fusionfork.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func getTopValidatorsByVotingPower(validatorItems []ValidatorItem, maxElectedVal
for i := 0; i < length; i++ {
item := heap.Pop(hp).(ValidatorItem)
eValidators[i] = item.address
// as the decimal in BNB chain is 1e8 and in BNB Smart Chain is 1e18, we need to divide it by 1e10
// as the decimal in BNB Beacon Chain is 1e8 and in BNB Smart Chain is 1e18, we need to divide it by 1e10
eVotingPowers[i] = new(big.Int).Div(item.votingPower, big.NewInt(1e10)).Uint64()
eVoteAddrs[i] = item.voteAddress
}
Expand Down

0 comments on commit e853ec1

Please sign in to comment.