[#CBlockIndex-HaveNumChainTxs]
= xref:CBlockIndex.adoc[CBlockIndex]::HaveNumChainTxs
:relfileprefix: ../
:mrdocs:

Check whether this block and all previous blocks back to the genesis block or an assumeutxo snapshot block have reached VALID&lowbar;TRANSACTIONS and had transactions downloaded (and stored to disk) at some point&period;

== Synopsis

Declared in `&lt;chain&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
HaveNumChainTxs() const;
----

== Description

Does not imply the transactions are consensus&hyphen;valid (ConnectTip might fail) Does not imply the transactions are still stored on disk&period; (IsBlockPruned might return true)

Note that this will be true for the snapshot base block, if one is loaded, since its m&lowbar;chain&lowbar;tx&lowbar;count value will have been set manually based on the related AssumeutxoData entry&period;

== Return Value

True if the chain transaction count for this block is known, otherwise false&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
