Skip to content

fix: Check Epoch Boundary for Operator Cache and Slot timestamp#890

Merged
mikhailUshakoff merged 7 commits intoNethermindEth:masterfrom
PoulavBhowmick03:fix/operator-cache-epoch-boundary
Mar 5, 2026
Merged

fix: Check Epoch Boundary for Operator Cache and Slot timestamp#890
mikhailUshakoff merged 7 commits intoNethermindEth:masterfrom
PoulavBhowmick03:fix/operator-cache-epoch-boundary

Conversation

@PoulavBhowmick03
Copy link
Contributor

The problem that used to occur is:

When the RPC node is behind , the operator cache would return the previous data for the operator or an error.

Changes:

  • Renamed the get_operators_for_current_and_next_cache to get_operators_for_current_and_next_slot and get_operators_for_current_and_next_epoch_internal to get_operators_for_current_and_next_slot_internal
  • Now checks for epoch boundaries and whether the latest block timestamp is behind the current block timestamp, in which case, return the cached operator. In case of epoch boundaries, it returns the next_operator as the current operator, and it does not cache the data, logs the same

@PoulavBhowmick03 PoulavBhowmick03 changed the title fix: Check Epoch Boundary for Operator Cache and Slot times fix: Check Epoch Boundary for Operator Cache and Slot timestamp Mar 4, 2026
@mskrzypkows
Copy link
Collaborator

@PoulavBhowmick03 please just bump the version, and we'll merge it.

@PoulavBhowmick03
Copy link
Contributor Author

@PoulavBhowmick03 please just bump the version, and we'll merge it.

done

@mikhailUshakoff mikhailUshakoff merged commit cc4ecf9 into NethermindEth:master Mar 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants