Skip to content

Commit 5396f38

Browse files
authored
fix validaorscelanup post electra (#240)
1 parent e0aa0f1 commit 5396f38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oracle/oracle.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ func (or *Oracle) ValidatorCleanup(slot uint64) error {
305305
// this means setting the validator rewards to 0 and sharing them among the pool
306306
idx := uint64(validator.Index)
307307

308-
if !validator.Status.IsActive() && or.isSubscribed(idx) {
308+
if !validator.Status.IsActive() && (or.state.Validators[idx].PendingRewardsWei.Cmp(big.NewInt(0)) != 0) {
309309
log.WithFields(log.Fields{
310310
"OracleValidatorStatus": or.state.Validators[idx].ValidatorStatus,
311311
"OraclePendingRewardsWei": or.state.Validators[idx].PendingRewardsWei,

0 commit comments

Comments
 (0)