Skip to content

Commit

Permalink
Add leadership_schedule.md to describe the new leadership-schedule cli
Browse files Browse the repository at this point in the history
command
  • Loading branch information
Jimbo4350 committed Jan 11, 2022
1 parent a96ada6 commit b43fbce
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/index.rst
Expand Up @@ -41,6 +41,7 @@ cardano-node
stake-pool-operations/start_your_nodes
stake-pool-operations/withdraw-rewards
stake-pool-operations/retire_stakepool
stake-pool-operations/leadership_schedule

.. toctree::
:maxdepth: 3
Expand Down
32 changes: 32 additions & 0 deletions doc/stake-pool-operations/leadership_schedule.md
@@ -0,0 +1,32 @@
## Leadership Schedule


### Get the leadership schedule for the current epoch and the next epoch

You can calculate the leadership schedule for your stake pool with:
- Shelley genesis file
- Stake pool ID
- VRF signing key

Specifying the `--current` flag will yield the leadership schedule for the current epoch as follows:

```bash
> cardano-cli query leadership-schedule \
--testnet-magic 42 \
--genesis example/shelley/genesis.json \
--stake-pool-verification-key pool12t0y7agkqct89pf00eeytkvfjlquv76tjy27duannan9w63ckxv \
--vrf-signing-key-file example/node-pool1/shelley/vrf.skey
--current

>
SlotNo UTC Time
-------------------------------------------------------------
4073 2021-12-29 17:26:54.998001755 UTC
4126 2021-12-29 17:27:00.298001755 UTC
4206 2021-12-29 17:27:08.298001755 UTC
4256 2021-12-29 17:27:13.298001755 UTC
4309 2021-12-29 17:27:18.598001755 UTC
4376 2021-12-29 17:27:25.298001755 UTC
4423 2021-12-29 17:27:29.998001755 UTC
4433 2021-12-29 17:27:30.998001755 UTC
```

0 comments on commit b43fbce

Please sign in to comment.