Skip to content

Commit

Permalink
Merge pull request #2782 from gobitfly/BIDS-2852/improve-handling-mis…
Browse files Browse the repository at this point in the history
…sing-bal-of-new-valis

(BIDS-2852) exporter: only log warning if balance of new vali is not …
  • Loading branch information
recy21 authored Dec 21, 2023
2 parents 71f860d + 7ef059a commit 1c76da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ func SaveValidators(epoch uint64, validators []*types.Validator, client rpc.Clie

foundBalance := uint64(0)
if balance[newValidator.Validatorindex] == nil || len(balance[newValidator.Validatorindex]) == 0 {
logger.Errorf("no activation epoch balance found for validator %v for epoch %v in bigtable, trying node", newValidator.Validatorindex, newValidator.ActivationEpoch)
logger.Warnf("no activation epoch balance found for validator %v for epoch %v in bigtable, trying node", newValidator.Validatorindex, newValidator.ActivationEpoch)

if balanceCache[newValidator.ActivationEpoch] == nil {
balances, err := client.GetBalancesForEpoch(int64(newValidator.ActivationEpoch))
Expand Down

0 comments on commit 1c76da5

Please sign in to comment.