# Block missed or leaderlog issue praos tpraos?

**URL:** <https://forum.cardano.org/t/block-missed-or-leaderlog-issue-praos-tpraos/108377>\
**Category:** Operate a Stake Pool\
**Created:** [30 September 2022 13:06 UTC](https://forum.cardano.org/t/block-missed-or-leaderlog-issue-praos-tpraos/108377 "2022-09-30T13:06:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ADevnoops](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/adevnoops/32/34497_2.png) [@ADevnoops](https://forum.cardano.org/u/ADevnoops)\
**Post date:** [30 September 2022 13:06 UTC](https://forum.cardano.org/t/block-missed-or-leaderlog-issue-praos-tpraos/108377/1 "2022-09-30T13:06:15Z")

</div>

Hello,  
I’m trying to understand if i have an issue with cncli leaderlog or if i have missed block on my producer.  
Thank you for your help.

Here’s the result of cncli leaderlog :

> cncli leaderlog --pool-id 57147265c639309d365ef7c419698cbc9c1d3337d58c1c6a373a4130 --shelley-genesis /opt/cardano/config/mainnet-shelley-genesis.json --consensus tpraos --byron-genesis /opt/cardano/config/mainnet-byron-genesis.json --pool-vrf-skey /opt/cardano/config/hot-keys/vrf.skey --db /var/cardano/cncli/cncli.db --pool-stake $POOL\_STAKE --active-stake $ACTIVE\_STAKE --tz Europe/Brussels --ledger-set

```auto
{
  "status": "ok",
  "epoch": 366,
  "epochNonce": "78fbbeb5249c7c4d2f2b06a082793656455cc1ca32f86623f572e22c1ea82207",
  "consensus": "tpraos",
  "epochSlots": 1,
  "epochSlotsIdeal": 0.54,
  "maxPerformance": 185.19,
  "poolId": "57147265c639309d365ef7c419698cbc9c1d3337d58c1c6a373a4130",
  "sigma": 0.000025108400313895972,
  "activeStake": 629367053628,
  "totalActiveStake": 25065995673156590,
  "d": 0.0,
  "f": 0.05,
  "assignedSlots": [
    {
      "no": 1,
      "slot": 72973409,
      "slotInEpoch": 224609,
      "at": "2022-09-30T14:08:20+02:00"
    }
  ]
}

```

The logs I found on the BP with the slot 72973409 are :

```auto
[producer:cardano.node.LeadershipCheck:Info:179] [2022-09-30 12:08:20.00 UTC] {"chainDensity":4.832897e-2,"credentials":"Cardano","delegMapSize":1220548,"kind":"TraceStartLeadershipCheck","slot":72973409,"utxoSize":8576349}
[producer:cardano.node.Forge:Info:179] [2022-09-30 12:08:20.04 UTC] fromList [("credentials",String "Cardano"),("val",Object (fromList [("kind",String "TraceNodeNotLeader"),("slot",Number 7.2973409e7)]))]

```

---

<div class="post-metadata">

**Author:** ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)\
**Post date:** [30 September 2022 13:31 UTC](https://forum.cardano.org/t/block-missed-or-leaderlog-issue-praos-tpraos/108377/2 "2022-09-30T13:31:35Z")

</div>

> [@Anyone else missing blocks since Vasil?](https://forum.cardano.org/t/anyone-else-missing-blocks-since-vasil/108048):
>
> Just checked my BP and so far I’ve been ‘missed’ 7 blocks since the epoch change… Never had a miss before today, so something seems strange. Anyone else having issues?!

---

<div class="post-metadata">

**Author:** ![os11k](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/os11k/32/43985_2.png) [@os11k](https://forum.cardano.org/u/os11k)\
**Post date:** [30 September 2022 13:39 UTC](https://forum.cardano.org/t/block-missed-or-leaderlog-issue-praos-tpraos/108377/3 "2022-09-30T13:39:19Z")

</div>

Hi,

You should not use `--consensus tpraos` after the Vasil fork. Remove it from your CNCLI command and rerun.

 ![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/b/6/b67687c99a0084d4004ee7c616f0c0926713dc39.png)

---

<div class="post-metadata">

**Author:** ![Jacobneider](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/jacobneider/32/26009_2.png) [@Jacobneider](https://forum.cardano.org/u/Jacobneider)\
**Post date:** [3 October 2022 14:44 UTC](https://forum.cardano.org/t/block-missed-or-leaderlog-issue-praos-tpraos/108377/4 "2022-10-03T14:44:08Z")

</div>

Hey, I’m running the this as well but I’m getting an error. I’ve updated the cncli.sh script and I’m running cncli 5.1.2. Anyone know the fix for this?

```auto
r3@r3:/opt/cardano/cnode/scripts$ cncli leaderlog \
--pool-id 3ed1b022f921fa2d37894e3592ac2271a00e25ef706df7c86743006e \
--pool-vrf-skey /opt/cardano/cnode/priv/pool/ARRK/vrf.skey \
--shelley-genesis /opt/cardano/cnode/files/shelley-genesis.json \
--byron-genesis /opt/cardano/cnode/files/byron-genesis.json \
--pool-stake $POOL_STAKE \
--active-stake $ACTIVE_STAKE \
--ledger-set current
error: The argument '--pool-stake <pool-stake>' requires a value but none was supplied

```

USAGE:

> cncli leaderlog --active-stake --byron-genesis --consensus --d --db --ledger-set --pool-id --pool-stake --pool-vrf-skey --shelley-genesis --shelley-transition-epoch --tz

For more information try --help

---

<div class="post-metadata">

**Author:** ![HeptaSean](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/heptasean/32/82306_2.png) [@HeptaSean](https://forum.cardano.org/u/HeptaSean)\
**Post date:** [3 October 2022 14:55 UTC](https://forum.cardano.org/t/block-missed-or-leaderlog-issue-praos-tpraos/108377/5 "2022-10-03T14:55:25Z")

</div>

> [@Jacobneider](#):
>
> error: The argument ‘–pool-stake ’ requires a value but none was supplied

Seems like your variable `$POOL_STAKE` is not set. While you are at it, check `$ACTIVE_STAKE` also.

---

<div class="post-metadata">

**Author:** ![Jacobneider](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/jacobneider/32/26009_2.png) [@Jacobneider](https://forum.cardano.org/u/Jacobneider)\
**Post date:** [3 October 2022 14:58 UTC](https://forum.cardano.org/t/block-missed-or-leaderlog-issue-praos-tpraos/108377/6 "2022-10-03T14:58:27Z")

</div>

I do not know where to set it.

---

<div class="post-metadata">

**Author:** ![HeptaSean](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/heptasean/32/82306_2.png) [@HeptaSean](https://forum.cardano.org/u/HeptaSean)\
**Post date:** [3 October 2022 15:02 UTC](https://forum.cardano.org/t/block-missed-or-leaderlog-issue-praos-tpraos/108377/7 "2022-10-03T15:02:47Z")

</div>

Does [https://github.com/cardano-community/cncli/blob/develop/USAGE.md#leaderlog-command](https://github.com/cardano-community/cncli/blob/develop/USAGE.md#leaderlog-command) help?

It’s just an example. You would have to adapt it to your case.

---

<div class="post-metadata">

**Author:** ![Jacobneider](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/jacobneider/32/26009_2.png) [@Jacobneider](https://forum.cardano.org/u/Jacobneider)\
**Post date:** [3 October 2022 15:14 UTC](https://forum.cardano.org/t/block-missed-or-leaderlog-issue-praos-tpraos/108377/8 "2022-10-03T15:14:13Z")

</div>

This is where I got the commands. I did adapt them. I check the comments in the env and in cncli.sh I did not see where to set the active stake or pool stake.

---

<div class="post-metadata">

**Author:** ![HeptaSean](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/heptasean/32/82306_2.png) [@HeptaSean](https://forum.cardano.org/u/HeptaSean)\
**Post date:** [3 October 2022 15:23 UTC](https://forum.cardano.org/t/block-missed-or-leaderlog-issue-praos-tpraos/108377/9 "2022-10-03T15:23:23Z")

</div>

In the section “Leaderlog Command”, it tells you which values from the output of `cardano-cli query stake-snapshot --mainnet --stake-pool-id <your pool ID>` you need to take for previous, current and next epoch.

The example code below that then sets (among others) `POOL_STAKE` and `ACTIVE_STAKE` to the ones for the next epoch (which currently isn’t possible, since we are more than 1.5 days away from the next epoch).

But you can also copy and paste the values directly from the output of `cardano-cli query stake-snapshot` without using variables.
