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)
|
voterCap = vCap.(*big.Int)
|
||||||
} else {
|
} else {
|
||||||
voterCap, err = validator.GetVoterCap(opts, masterAddr, voteAddr)
|
voterCap, err = validator.GetVoterCap(opts, masterAddr, voteAddr)
|
||||||
c.Votes.Add(vote, voterCap)
|
|
||||||
}
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("Fail to get vote capacity", "error", err)
|
log.Crit("Fail to get vote capacity", "error", err)
|
||||||
return nil, err
|
}
|
||||||
|
c.Votes.Add(vote, voterCap)
|
||||||
}
|
}
|
||||||
|
|
||||||
totalCap.Add(totalCap, voterCap)
|
totalCap.Add(totalCap, voterCap)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue