Skip to content

Commit

Permalink
fix: nit
Browse files Browse the repository at this point in the history
  • Loading branch information
aimxhaisse committed Jun 26, 2024
1 parent f066e39 commit b61c7dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eth_validator_watcher/watched_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ def process_liveness(self, liveness: ValidatorsLivenessResponse.Data):
Parameters:
liveness: Validator liveness data
"""
self._v.previous_missed_attestation = self._v.missed_attestation if self._v.missed_attestation is not None else False
self._v.missed_attestation = bool(not liveness.is_live)
self._v.previous_missed_attestation = self._v.missed_attestation
self._v.missed_attestation = liveness.is_live != True

def process_rewards(self, ideal: Rewards.Data.IdealReward, reward: Rewards.Data.TotalReward):
"""Processes rewards data.
Expand Down

0 comments on commit b61c7dd

Please sign in to comment.