mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-30 19:51:58 +00:00
uint* to int* whereever appropriate; https://www.reddit.com/r/golang/comments/2q5vdu/int_vs_uint/
This commit is contained in:
@@ -6,8 +6,8 @@ import (
|
||||
)
|
||||
|
||||
func validate(signBytes []byte, validators []Validator, signatures []acm.Signature) bool {
|
||||
var signedPower uint64
|
||||
var totalPower uint64
|
||||
var signedPower int64
|
||||
var totalPower int64
|
||||
for i, val := range validators {
|
||||
if val.PubKey.VerifyBytes(signBytes, signatures[i]) {
|
||||
signedPower += val.VotingPower
|
||||
|
Reference in New Issue
Block a user