We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0aa0f1 commit 5396f38Copy full SHA for 5396f38
oracle/oracle.go
@@ -305,7 +305,7 @@ func (or *Oracle) ValidatorCleanup(slot uint64) error {
305
// this means setting the validator rewards to 0 and sharing them among the pool
306
idx := uint64(validator.Index)
307
308
- if !validator.Status.IsActive() && or.isSubscribed(idx) {
+ if !validator.Status.IsActive() && (or.state.Validators[idx].PendingRewardsWei.Cmp(big.NewInt(0)) != 0) {
309
log.WithFields(log.Fields{
310
"OracleValidatorStatus": or.state.Validators[idx].ValidatorStatus,
311
"OraclePendingRewardsWei": or.state.Validators[idx].PendingRewardsWei,
0 commit comments