[#kernel-ChainstateManagerOpts]
= xref:kernel.adoc[kernel]::ChainstateManagerOpts
:relfileprefix: ../
:mrdocs:

An options struct for `ChainstateManager`, more ergonomically referred to as `ChainstateManager&colon;&colon;Options` due to the using&hyphen;declaration in `ChainstateManager`&period;

== Synopsis

Declared in `&lt;kernel&sol;chainstatemanager&lowbar;opts&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct ChainstateManagerOpts;
----

== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:kernel/ChainstateManagerOpts/assumed_valid_block.adoc[`assumed&lowbar;valid&lowbar;block`] 
| If set, it will override the block hash whose ancestors we will assume to have valid scripts without checking them&period;
| xref:kernel/ChainstateManagerOpts/chainparams.adoc[`chainparams`] 
| Chain parameters governing consensus and validation&period;
| xref:kernel/ChainstateManagerOpts/check_block_index.adoc[`check&lowbar;block&lowbar;index`] 
| If set, run the block index sanity check at this frequency&period;
| xref:kernel/ChainstateManagerOpts/coins_db.adoc[`coins&lowbar;db`] 
| Options for opening the coins (UTXO) database&period;
| xref:kernel/ChainstateManagerOpts/coins_view.adoc[`coins&lowbar;view`] 
| Options for the in&hyphen;memory coins view cache&period;
| xref:kernel/ChainstateManagerOpts/datadir.adoc[`datadir`] 
| Data directory where chainstate and block files are stored&period;
| xref:kernel/ChainstateManagerOpts/max_tip_age.adoc[`max&lowbar;tip&lowbar;age`] 
| If the tip is older than this, the node is considered to be in initial block download&period;
| xref:kernel/ChainstateManagerOpts/minimum_chain_work.adoc[`minimum&lowbar;chain&lowbar;work`] 
| If set, it will override the minimum work we will assume exists on some valid chain&period;
| xref:kernel/ChainstateManagerOpts/notifications.adoc[`notifications`] 
| Sink for chainstate notifications&period;
| xref:kernel/ChainstateManagerOpts/prevoutfetch_threads_num.adoc[`prevoutfetch&lowbar;threads&lowbar;num`] 
| Number of worker threads used for prefetching block input prevouts&period; Zero means no parallel fetching&period;
| xref:kernel/ChainstateManagerOpts/script_execution_cache_bytes.adoc[`script&lowbar;execution&lowbar;cache&lowbar;bytes`] 
| Size, in bytes, of the script execution result cache&period;
| xref:kernel/ChainstateManagerOpts/signals.adoc[`signals`] 
| Sink for validation event notifications, or null if unused&period;
| xref:kernel/ChainstateManagerOpts/signature_cache_bytes.adoc[`signature&lowbar;cache&lowbar;bytes`] 
| Size, in bytes, of the signature verification cache&period;
| xref:kernel/ChainstateManagerOpts/worker_threads_num.adoc[`worker&lowbar;threads&lowbar;num`] 
| Number of script check worker threads&period; Zero means no parallel verification&period;
|===



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