user899: The security parameter k is set to 2160 blocks. The code comment describing this genesis parameter makes it crystal clear it defines the maximum number of blocks the chain could potentially roll back. 2160 blocks equals 43,200 slots, or 12 hours.
Compare

The Ouroboros security parameters, aka k. This is the maximum number of blocks the node would ever be prepared to roll back by.
Clients of the node following the chain should be prepared to handle the node switching forks up to this long.
Source: https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/GenesisParameters.hs#L55-L61

and the description in CIP#9

After how many blocks is the blockchain considered to be final, and thus can no longer be rolled back (i.e. what is the maximum allowable length of any chain fork).
Source: https://cips.cardano.org/cips/cip9/

to this article in the official docs

A transaction becomes immutable as soon as its depth is greater than 3k/f slots (that is, 129600 slots on current mainnet, or 36 hours).
Source: https://docs.cardano.org/learn/chain-confirmation-versus-transaction-confirmation


Can someone please explain

what is the source for the docs to come up with this formula 3k/f?
which statement is correct (12h or 36h), and why?


user252: The documentation site (docs.cardano.org) is wrong, the one in genesis is correct.
Unfortunately I find it painful that ones maintaining/merging documents are not hands on - so depend on others to provide correctness of data. Hopefully you can address it via PR

899: <p>The security parameter k is set to 2160 blocks. The code comment describing this genesis parameter makes it crystal clear it defines the maximum number of blocks the chain could potentially roll back. 2160 blocks equals 43,200 slots, or 12 hours.</p>
<p>Compare</p>
<blockquote>
<p>The Ouroboros security parameters, aka k. This is the maximum number of blocks the node would ever be prepared to roll back by.</p>
<p>Clients of the node following the chain should be prepared to handle the node switching forks up to this long.</p>
<p>Source: <a href="https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/GenesisParameters.hs#L55-L61" rel="nofollow noreferrer">https://github.com/input-output-hk/cardano-node/blob/master/cardano-api/src/Cardano/Api/GenesisParameters.hs#L55-L61</a></p>
</blockquote>
<p>and the description in CIP#9</p>
<blockquote>
<p>After how many blocks is the blockchain considered to be final, and thus can no longer be rolled back (i.e. what is the maximum allowable length of any chain fork).</p>
<p>Source: <a href="https://cips.cardano.org/cips/cip9/" rel="nofollow noreferrer">https://cips.cardano.org/cips/cip9/</a></p>
</blockquote>
<p>to this article in the official docs</p>
<blockquote>
<p>A transaction becomes immutable as soon as its depth is greater than 3k/f slots (that is, 129600 slots on current mainnet, or 36 hours).</p>
<p>Source: <a href="https://docs.cardano.org/learn/chain-confirmation-versus-transaction-confirmation" rel="nofollow noreferrer">https://docs.cardano.org/learn/chain-confirmation-versus-transaction-confirmation</a></p>
</blockquote>
<hr />
<p>Can someone please explain</p>
<ul>
<li>what is the source for the docs to come up with this formula <code>3k/f</code>?</li>
<li>which statement is correct (12h or 36h), and why?</li>
</ul>
 252: <p>The documentation site (docs.cardano.org) is wrong, the one in genesis is correct.</p>
<p>Unfortunately I find it painful that ones maintaining/merging documents are not hands on - so depend on others to provide correctness of data. Hopefully you can address it via PR</p>
