mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
crit when get voters, voter capacity
This commit is contained in:
parent
bfa11f2bce
commit
8909b21925
1 changed files with 2 additions and 4 deletions
|
|
@ -410,8 +410,7 @@ func GetRewardBalancesRate(foudationWalletAddr common.Address, masterAddr common
|
|||
opts := new(bind.CallOpts)
|
||||
voters, err := validator.GetVoters(opts, masterAddr)
|
||||
if err != nil {
|
||||
log.Error("Fail to get voters", "error", err)
|
||||
return nil, err
|
||||
log.Crit("Fail to get voters", "error", err)
|
||||
}
|
||||
|
||||
if len(voters) > 0 {
|
||||
|
|
@ -423,8 +422,7 @@ func GetRewardBalancesRate(foudationWalletAddr common.Address, masterAddr common
|
|||
for _, voteAddr := range voters {
|
||||
voterCap, err := validator.GetVoterCap(opts, masterAddr, voteAddr)
|
||||
if err != nil {
|
||||
log.Error("Fail to get vote capacity", "error", err)
|
||||
return nil, err
|
||||
log.Crit("Fail to get vote capacity", "error", err)
|
||||
}
|
||||
|
||||
totalCap.Add(totalCap, voterCap)
|
||||
|
|
|
|||
Loading…
Reference in a new issue