Skip to content
This repository was archived by the owner on Sep 8, 2026. It is now read-only.

fix(sentinel): improve previous epoch slot evaluation - #213

Merged
karl-dz merged 3 commits into
mainfrom
sentinel/2306
Nov 26, 2025
Merged

fix(sentinel): improve previous epoch slot evaluation#213
karl-dz merged 3 commits into
mainfrom
sentinel/2306

Conversation

@karl-dz

@karl-dz karl-dz commented Nov 26, 2025

Copy link
Copy Markdown
Contributor

Summary of Changes

When using a local validator, the leader schedule check will always fail because the previous epoch slot iterator will always return None since the current slot will always be less than 432,000 slots (the number of slots in an epoch). So if we were to test the Sentinel in a local environment, it never has a chance of granting access. This PR fixes this iterator evaluation.

This change also makes PreviousEpochSlots private since nothing else would use it besides this submodule.

Closes malbeclabs/doublezero#2306.

Testing Verification

Unit tests still pass.

@karl-dz
karl-dz marked this pull request as ready for review November 26, 2025 21:19
@karl-dz
karl-dz merged commit abdfd14 into main Nov 26, 2025
2 checks passed
@karl-dz
karl-dz deleted the sentinel/2306 branch November 26, 2025 21:22
bgm-malbeclabs pushed a commit to malbeclabs/doublezero that referenced this pull request Aug 28, 2026
…blezero-offchain#213)

## Summary of Changes
When using a local validator, the leader schedule check will always fail
because the previous epoch slot iterator will always return `None` since
the current slot will always be less than 432,000 slots (the number of
slots in an epoch). So if we were to test the Sentinel in a local
environment, it never has a chance of granting access. This PR fixes
this iterator evaluation.

This change also makes `PreviousEpochSlots` private since nothing else
would use it besides this submodule.

Closes #2306.

## Testing Verification
Unit tests still pass.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fetching leader schedule in sentinel for local validator instance is unusable

2 participants