Skip to content

Commit

Permalink
do not crash sraper in case rewards cannot be unmarshalled
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardo-gnosis committed Sep 19, 2024
1 parent 6696c8a commit f53e68d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/clientapi/rewards.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (s *APIClient) RequestBlockRewards(slot phase0.Slot) (spec.BlockRewards, er
err = json.Unmarshal(body, &rewards)

if err != nil {
log.Fatalf("error parsing block rewards response: %s", err)
log.Warnf("error parsing block rewards response boyd %s: %s", string(body), err)
}

return rewards, err
Expand Down

0 comments on commit f53e68d

Please sign in to comment.