Skip to main content
1 of 8
Nic_T2H
  • 450
  • 2
  • 14

First slot of the epoch and stability window

I am building a Cron job to check leader-slots and during testing/learning phase I saw that the command will not start if the slot isn't greater than first slot of the epoch + stability window slots amount.

Reading around the web I found out that stability window could be edited by the protocol (please correct me if I am wrong) in some cases, and so my question is:

is there a way to query the first block of the epoch and the current stability window? This way I can check those parameters first and then run the check. Or can you advise other ways to run the leadership-schedule command with a cronjob and being sure that it will run?

Thanks for your time. Have a great day.

Nic_T2H
  • 450
  • 2
  • 14