<p>Result from cncli-leaderlog shows me, that we had 1 assigned block 3 days before. But no block minted, relay and block producer are running well.
Can you help me, what should I check? and eventually correct for the next assigned slot? Or the result from cncli-leaderlog.sh are not correct?
Thanks, MB</p>
<pre><code>{
  &quot;no&quot;: 1,
  &quot;slot&quot;: 39334091,
  &quot;slotInEpoch&quot;: 281291,
  &quot;at&quot;: &quot;2021-09-05T20:53:02-07:00&quot;
}
</code></pre>

CC BY-SA 4.0
2021-09-08T04:00:21.580Z
Hi! welcome to the Cardano stack. If you have a particular doubt please create a new post with your question.
Aron Neewart
CC BY-SA 4.0
2021-09-07T22:14:48.210Z
2021-09-07T22:14:48.210Z
ADA Czech
<p>Yes, the slots allotted to a pool for minting in the next epoch can be calculated (36 Hours before the epoch). Cncli is a community tool (available at <a href="https://github.com/AndrewWestberg/cncli" rel="noreferrer">github repository</a>) made by, Andrew Westberg (@AndrewWestberg-BCSH), Michael Fazio, Andrea Callea, Thomas Diesler. The details provided are quite exhaustive. Sample output of the leader log command is below</p>
<pre><code>{
 &quot;status&quot;: &quot;ok&quot;,
 &quot;epoch&quot;: 227,
 &quot;epochNonce&quot;:   XXX&quot;,
 poolId&quot;:    --------&quot;,
 &quot;sigma&quot;: 0.0028306163817569175,
 &quot;d&quot;: 0.5,
 &quot;assignedSlots&quot;: [
 ...
 {
     &quot;slot&quot;: 13083245,
     &quot;slotInEpoch&quot;: 382445,
     &quot;at&quot;: &quot;2020-11-05T23:58:56-08:00&quot;
 },
 {
      &quot;slot&quot;: 13106185,
      &quot;slotInEpoch&quot;: 405385,
      &quot;at&quot;: &quot;2020-11-06T06:21:16-08:00&quot;
 }
      ...
 ]
}
</code></pre>
<p>The selection of slot leader mechanism is explained nicely in <a href="https://www.youtube.com/watch?v=M3Xq1qz3ljU" rel="noreferrer">NerdOut</a></p>

CC BY-SA 4.0
2021-08-18T17:37:26.200Z
2021-08-18T17:50:08.867Z
2021-08-18T17:50:08.867Z
raghu
<blockquote>
<p>Also wouldn't this mean that one could always check which pool has the most blocks assigned and then switch to that pool for the next epoch?</p>
</blockquote>
<p>The number of blocks calculated for the next epoch is, among other things, based on a snapshot of the delegations to each pool taken at the beginning of the current epoch.</p>
<p>This means that if you were not staked with the pool at the beginning of the current epoch, your stake will not be earning rewards for the coming epoch (the epoch during which the calculated number of blocks will be minted).</p>
<p>If you delegate to a pool once they know how many blocks are going to be minted in epoch X (i.e. within 36 hours prior to epoch X starting), your stake will be part of the snapshot that helps determine how many blocks will be minted in epoch X+1, and it is during epoch X+1 that your stake will start earning rewards.</p>

CC BY-SA 4.0
2021-08-25T05:11:03.153Z
Since I can't mark 2 questions as accepted answer, this is not the accepted answer. Still this answers the second part of my question, so this answer in combination with raghus answer is what I was looking for. Thanks Chrismo!
eddex
CC BY-SA 4.0
2021-08-18T22:39:58.697Z
2021-08-19T07:21:11.580Z
2021-08-19T07:21:11.580Z
Chrismo
<p>I just saw this tweet: <a href="https://twitter.com/SmaugPool/status/1428010540711006218" rel="noreferrer">https://twitter.com/SmaugPool/status/1428010540711006218</a></p>
<blockquote>
<p>Next epoch (285) should be great at 109% luck with 19 leader slots</p>
</blockquote>
<p>At the time the tweet was made, epoch 284 was still in progress.</p>
<p>How is it possible that the stake pool owner already knows how many slots/blocks he gets assigned in the next epoch? Can this information be retrieved from the blockchain?</p>
<p>Also wouldn't this mean that one could always check which pool has the most blocks assigned and then switch to that pool for the next epoch?</p>

<stake-pool><staking>
How is it possible to know how many blocks a pool will mint in the next epoch?
# How is it possible to know how many blocks a pool will mint in the next epoch?

(Asked by: username_0 on 2021-08-18)

I just saw this tweet: <https://twitter.com/SmaugPool/status/1428010540711006218>

> Next epoch (285) should be great at 109% luck with 19 leader slots

At the time the tweet was made, epoch 284 was still in progress.

How is it possible that the stake pool owner already knows how many slots/blocks he gets assigned in the next epoch? Can this information be retrieved from the blockchain?

Also wouldn't this mean that one could always check which pool has the most blocks assigned and then switch to that pool for the next epoch?

**Tags:** stake-pool, staking

---

## 3 answers

### Answer by username_3 on 2021-08-18. Score: 6 | Accepted answer

Yes, the slots allotted to a pool for minting in the next epoch can be calculated (36 Hours before the epoch). Cncli is a community tool (available at github repository) made by, Andrew Westberg (@AndrewWestberg-BCSH), Michael Fazio, Andrea Callea, Thomas Diesler. The details provided are quite exhaustive. Sample output of the leader log command is below
{
 "status": "ok",
 "epoch": 227,
 "epochNonce":   XXX",
 poolId":    --------",
 "sigma": 0.0028306163817569175,
 "d": 0.5,
 "assignedSlots": [
 ...
 {
     "slot": 13083245,
     "slotInEpoch": 382445,
     "at": "2020-11-05T23:58:56-08:00"
 },
 {
      "slot": 13106185,
      "slotInEpoch": 405385,
      "at": "2020-11-06T06:21:16-08:00"
 }
      ...
 ]
}

The selection of slot leader mechanism is explained nicely in NerdOut


---

### Answer by username_4 on 2021-08-18. Score: 5

> Also wouldn't this mean that one could always check which pool has the most blocks assigned and then switch to that pool for the next epoch?

The number of blocks calculated for the next epoch is, among other things, based on a snapshot of the delegations to each pool taken at the beginning of the current epoch.

This means that if you were not staked with the pool at the beginning of the current epoch, your stake will not be earning rewards for the coming epoch (the epoch during which the calculated number of blocks will be minted).

If you delegate to a pool once they know how many blocks are going to be minted in epoch X (i.e. within 36 hours prior to epoch X starting), your stake will be part of the snapshot that helps determine how many blocks will be minted in epoch X+1, and it is during epoch X+1 that your stake will start earning rewards.

> **Comments:**
> **username_0**: Since I can't mark 2 questions as accepted answer, this is not the accepted answer. Still this answers the second part of my question, so this answer in combination with raghus answer is what I was looking for. Thanks Chrismo!  

---

### Answer by username_1 on 2021-09-07. Score: 0

Result from cncli-leaderlog shows me, that we had 1 assigned block 3 days before. But no block minted, relay and block producer are running well.
Can you help me, what should I check? and eventually correct for the next assigned slot? Or the result from cncli-leaderlog.sh are not correct?
Thanks, MB
{
  "no": 1,
  "slot": 39334091,
  "slotInEpoch": 281291,
  "at": "2021-09-05T20:53:02-07:00"
}

> **Comments:**
> **username_2**: Hi! welcome to the Cardano stack. If you have a particular doubt please create a new post with your question.  

---

