Finding the longest attestation slot gap
Find the best slot gap to avoid missing any validator duties.
⏩ Quick steps guide
🗡️ Why do I want to calculate the longest attestation slot gap?
Your validators are assigned duties to attest and propose blocks.
Understanding the schedule of your validator's duties better, you can find the best time to plan consensus/execution client updates, system reboots or outages.
Since the Altair Hard Fork, checking sync committee membership is a must before performing any maintenance. This will give you up to ~27 hours of advanced notice in case your validators have been selected for sync committee duties.
🤖 Pre-requisites
python3
validator index number(s) -- Lookup on https://beaconcha.in/ or https://beaconscan.com/
Works with Lighthouse / Teku / Prysm currently
✨ Kudos to pietjepuk2 on Discord for authoring this process.
🚧 How to Run the Validator Duties script
1. Install python3
2. Download pietjepuk2's get_validator_duties.py
python script.
3. Enter your validator index numbers as parameters to the python script.
Sample Output showing the longest gap in seconds, # of slots and time range.
Longest gap (first):
120.0 seconds (10 slots), from 13:37:35 until 13:39:35
🔥 Script Usage Caveats:
This version does not include block proposals, although the odds of having one scheduled are really low of course.
Block proposal duties are only known for the current epoch, whereas attestation duties are known for the current and next one.
Nice work. Now you now the best gap to avoid missing any validator duties.
🤖 Start staking by building a validator
Visit here for our Mainnet guide
Congrats on completing the guide. ✨
🧩 Reference Material
https://gist.github.com/mohamedmansour/9a82071802ffd58bef7ab5db530f23fd
Last updated