How to check the stake pool have ability to mint block?

Hello, I just set up a stake pool, it has 300k to 400K stake for about 20 epochs, but no block have been mint until now
Is there any tool or method I can use to check if anything is wrong?

Here’s a start script for BP node:

cardano-node run \
  --topology /home/erictsai/cardano-src/mainnet-topology.json \
  --database-path /home/erictsai/cardano-src/db \
  --socket-path /home/erictsai/cardano-src/db/node.socket \
  --host-addr  0.0.0.0 \
  --port 3001 \
  --config /home/erictsai/cardano-src/mainnet-config.json \
  --shelley-kes-key /home/erictsai/cardano-src/pool-keys/kes.skey \
  --shelley-vrf-key /home/erictsai/cardano-src/pool-keys/vrf.skey \
  --shelley-operational-certificate /home/erictsai/cardano-src/pool-keys/node.cert

The node is working, below are the logs from the BP node, seems no problem:

Aug 30 09:33:08 ip-xx-xx-xx-xx cardano-node[22863]: [ip-xx-xx:cardano.node.LeadershipCheck:Info:265] [2022-08-30 09:33:08.00 UTC] {"chainDensity":4.9461626e-2,"credentials":"Cardano","delegMapSize":1215365,"kind":"TraceStartLeadershipCheck","slot":70285697,"utxoSize":8439284}

Aug 30 09:33:08 ip-xx-xx-xx-xx cardano-node[22863]: [ip-xx-xx:cardano.node.Forge:Info:265] [2022-08-30 09:33:08.03 UTC] fromList [("credentials",String "Cardano"),("val",Object (fromList [("kind",String "TraceNodeNotLeader"),("slot",Number 7.0285697e7)]))]

Aug 30 09:33:09 ip-xx-xx-xx-xx cardano-node[22863]: [ip-xx-xx:cardano.node.LeadershipCheck:Info:265] [2022-08-30 09:33:09.00 UTC] {"chainDensity":4.9461626e-2,"credentials":"Cardano","delegMapSize":1215365,"kind":"TraceStartLeadershipCheck","slot":70285698,"utxoSize":8439284}

Aug 30 09:33:09 ip-xx-xx-xx-xx cardano-node[22863]: [ip-xx-xx:cardano.node.Forge:Info:265] [2022-08-30 09:33:09.03 UTC] fromList [("credentials",String "Cardano"),("val",Object (fromList [("kind",String "TraceNodeNotLeader"),("slot",Number 7.0285698e7)]))]

Aug 30 09:33:10 ip-xx-xx-xx-xx cardano-node[22863]: [ip-xx-xx:cardano.node.LeadershipCheck:Info:265] [2022-08-30 09:33:10.00 UTC] {"chainDensity":4.9461626e-2,"credentials":"Cardano","delegMapSize":1215365,"kind":"TraceStartLeadershipCheck","slot":70285699,"utxoSize":8439284}

Aug 30 09:33:10 ip-xx-xx-xx-xx cardano-node[22863]: [ip-xx-xx:cardano.node.Forge:Info:265] [2022-08-30 09:33:10.03 UTC] fromList [("credentials",String "Cardano"),("val",Object (fromList [("kind",String "TraceNodeNotLeader"),("slot",Number 7.0285699e7)]))]

Aug 30 09:33:10 ip-xx-xx-xx-xx cardano-node[22863]: [ip-xx-xx:cardano.node.Mempool:Info:39509] [2022-08-30 09:33:10.19 UTC] fromList [("kind",String "TraceMempoolAddedTx"),("mempoolSize",Object (fromList [("bytes",Number 28938.0),("numTxs",Number 14.0)])),("tx",Object (fromList [("txid",String "3838611c")]))]

Aug 30 09:33:10 ip-xx-xx-xx-xx cardano-node[22863]: [ip-xx-xx:cardano.node.Mempool:Info:39509] [2022-08-30 09:33:10.37 UTC] fromList [("kind",String "TraceMempoolAddedTx"),("mempoolSize",Object (fromList [("bytes",Number 29507.0),("numTxs",Number 15.0)])),("tx",Object (fromList [("txid",String "538f0df6")]))]

The easiest way to check if your stake pool is scheduled to mint a block is using the cardano-cli query leadership-schedule command. The alternative is to use cncli, but it is a litthe more complicated.

cardano-cli query leadership-schedule \
--mainnet \
--genesis shelley-genesis.json \
--stake-pool-id ${POOL_ID} \
--vrf-signing-key-file vrf.skey \
--current

Both commands need a lot of memory (a few GB) and a few minutes to run. If your node does not have enough RAM and swap, cardano-node will crash with out-of-memory.
It the progress in the epoch is >70%, you can also find the scheduled slots for the next epoch replacing --current with --next.

2 Likes

Sounds similar to Please help with checking my Stakepool configuration

CHG

I got this error and the node service crush, is that because memory is not enough?

MuxError MuxBearerClosed "<socket: 11> closed when reading data, waiting on next header True"
cardano-cli: MuxBearerClosed "<socket: 11> closed when reading data, waiting on next header True"

the error from node:

cardano-node.service: main process exited, code=exited, status=137/n/a

the cli I run:

cardano-cli query leadership-schedule \
--mainnet \
--genesis mainnet-shelley-genesis.json \
--stake-pool-id pool15k0zeppza4qzgf6z7wmwsgvl5rz9f6489zxhrxqa8dj6jzju6ct \
--vrf-signing-key-file pool-keys/vrf.skey \
--current

so is there possible of bad luck?

Check sudo dmesg -T to see if there was and “Out-of-Memory” error and cardano-node was killed.

1 Like

Yes, it is, so do I need to use bigger memory to check?

Yes. Add more swap (8 or 16 GB), if you cannot add more memory.