Leadership schedual on testnet?

Hi guys, wondering if its possible to check slot leadership schedule on the testnet. Here is the command i have used and it returned the following: “Command failed: query leadership-schedule Error: The current stake distribution is currently unstable and therefore we cannot predict the following epoch’s leadership schedule. Please wait until : SlotNo 58924799 before running the leadership-schedule command again”

Command:
cardano-cli query leadership-schedule
–testnet-magic 1097911063
–genesis $NODE_HOME/testnet-shelley-genesis.json
–stake-pool-id $(cat $NODE_HOME/stakepoolid.txt)
–vrf-signing-key-file $NODE_HOME/vrf.skey
–next \

i have also tried using the variation of the command to check for the current epoch and it returns no data.

perhaps there is another command altogether but i haven’t been able to find it.

thanks for any suggestions.

next is not for the next epoch?
U can check blocks for the next epoch only with 1,5 days before new epoch start

Cheers,

So to clearify, i can use the command 1.5 days before the start of next epoch?
Thanks :slightly_smiling_face:

for current epoch use

cardano-cli query leadership-schedule \
--mainnet \
--genesis $NODE_HOME/mainnet-shelley-genesis.json \
--stake-pool-id $(cat $NODE_HOME/stakepoolid.txt) \
--vrf-signing-key-file $NODE_HOME/vrf.skey \
--current

for next epoch (but not early than 1,5 days before the new epoch start)

cardano-cli query leadership-schedule \
--mainnet \
--genesis $NODE_HOME/mainnet-shelley-genesis.json \
--stake-pool-id $(cat $NODE_HOME/stakepoolid.txt) \
--vrf-signing-key-file $NODE_HOME/vrf.skey \
--next
1 Like

Only for next epoch, for current epoch u can run it anytime

1 Like

so I’m trying to use the command on the testnet and trying to use ‘current’ variation of the command. this was the output:
Screenshot from 2022-05-21 00-57-15.png.pdf (146.6 KB)

I’m assuming this output means I’m simply not scheduled for this epoch?

then u don’t have any blocks assigned, if you stake is under 1M, open a new topic and ask for someone to delegate more tADA to your pool

1 Like

Thank you :slight_smile:

1 Like

And as a side question, it is my understanding that if i use this command (1.5 days or closer to the start of the next epoch) and come up as not being scheduled, then that would be the best time to preform maintenance on the server?

Anytime when there is no blocks assigned (the command it will show u the date/time when the block will be created)

Performing maintenance on servers will not affect blocks assignation; once the block was assigned u must be sure that the Producer is working well at that time

1 Like

Ok, i understand. thanks again :slight_smile: