Re-creating Your Stake Pool's Block Schedule

Figuring out your stake pool’s block schedule is a great tool for planning maintenance. Thanks to


and other contributors from the community, we now have a tool to figure out your block schedule! This video shows you how to create it for your pool.

1 Like

I keep getting this error:

node cardanoLeaderLogs.js slotLeaderLogsConfig.json fa2cd68857d74b32d704c86ac94ad40c2d7b5d7143ace3ea4e1fa798794059c0
             process args: [
     replaying last epoch: false
                  Network: --mainnet
     Loading ledger state: null
Error: Command failed: cardano-cli shelley query ledger-state --cardano-mode --mainnet > /home/ubuntu/relay/cardano-leader-logs/ledgerstate.json
/bin/sh: 1: cardano-cli: not found

    at ChildProcess.exithandler (child_process.js:308:12)
    at ChildProcess.emit (events.js:315:20)
    at maybeClose (internal/child_process.js:1048:16)
    at Socket.<anonymous> (internal/child_process.js:439:11)
    at Socket.emit (events.js:315:20)
    at Pipe.<anonymous> (net.js:673:12) {
  killed: false,
  code: 127,
  signal: null,
  cmd: 'cardano-cli shelley query ledger-state --cardano-mode --mainnet > /home/ubuntu/relay/cardano-leader-logs/ledgerstate.json '
(node:1196) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at loadLedgerState (/home/ubuntu/relay/cardano-leader-logs/cardanoLeaderLogs.js:58:15)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async calculateLeaderLogs (/home/ubuntu/relay/cardano-leader-logs/cardanoLeaderLogs.js:98:14)
    at async main (/home/ubuntu/relay/cardano-leader-logs/cardanoLeaderLogs.js:140:3)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:1196) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see (rejection id: 1)
(node:1196) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Any idea where I goofed?

cardano-cli binary is not in your PATH:

/bin/sh: 1: cardano-cli: not found

try adding:

if [ -d "$HOME/.cabal/bin" ] ; then

to your .profile file and run source .profile then try running again. The .profile should be in your user’s home directory - although it might be named differently for different distributions (this is for Ubuntu 20.04).