mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
correct error log
This commit is contained in:
parent
3c7ced7e1e
commit
b1ab315b19
1 changed files with 3 additions and 4 deletions
|
|
@ -488,11 +488,10 @@ func GetRewardBalancesRate(c *posv.Posv, foudationWalletAddr common.Address, mas
|
|||
voterCap = vCap.(*big.Int)
|
||||
} else {
|
||||
voterCap, err = validator.GetVoterCap(opts, masterAddr, voteAddr)
|
||||
c.Votes.Add(vote, voterCap)
|
||||
}
|
||||
if err != nil {
|
||||
log.Error("Fail to get vote capacity", "error", err)
|
||||
return nil, err
|
||||
log.Crit("Fail to get vote capacity", "error", err)
|
||||
}
|
||||
c.Votes.Add(vote, voterCap)
|
||||
}
|
||||
|
||||
totalCap.Add(totalCap, voterCap)
|
||||
|
|
|
|||
Loading…
Reference in a new issue