[#btck-ChainstateManagerOptions]
= xref:btck.adoc[btck]::ChainstateManagerOptions
:relfileprefix: ../
:mrdocs:

Owning wrapper over `btck&lowbar;ChainstateManagerOptions`, configuring a ChainMan&period;

== Synopsis

Declared in `&lt;kernel&sol;bitcoinkernel&lowbar;wrapper&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class ChainstateManagerOptions
    : public xref:btck/UniqueHandle-0da.adoc[UniqueHandle&lt;btck&lowbar;ChainstateManagerOptions, btck&lowbar;chainstate&lowbar;manager&lowbar;options&lowbar;destroy&gt;]
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:btck/UniqueHandle-0da.adoc[UniqueHandle&lt;btck&lowbar;ChainstateManagerOptions, btck&lowbar;chainstate&lowbar;manager&lowbar;options&lowbar;destroy&gt;]`
| Owning RAII handle for a non&hyphen;copyable C object, backed by std&colon;&colon;unique&lowbar;ptr&period;
|===

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:btck/ChainstateManagerOptions/2constructor.adoc[`ChainstateManagerOptions`]         [.small]#[constructor]#
| Constructs options with the data and block directories&period;
| xref:btck/ChainstateManagerOptions/SetDatabaseCacheBytes.adoc[`SetDatabaseCacheBytes`] 
| Sets the database cache size&period;
| xref:btck/ChainstateManagerOptions/SetWipeDbs.adoc[`SetWipeDbs`] 
| Selects which databases to wipe on startup&period;
| xref:btck/ChainstateManagerOptions/SetWorkerThreads.adoc[`SetWorkerThreads`] 
| Sets the number of script&hyphen;verification worker threads&period;
| xref:btck/ChainstateManagerOptions/UpdateBlockTreeDbInMemory.adoc[`UpdateBlockTreeDbInMemory`] 
| Controls whether the block tree database is kept in memory&period;
| xref:btck/ChainstateManagerOptions/UpdateChainstateDbInMemory.adoc[`UpdateChainstateDbInMemory`] 
| Controls whether the chainstate database is kept in memory&period;
| xref:btck/ChainstateManagerOptions/get-01.adoc[`get`] 
| Returns the owned C handle&period;
|===


== Protected Types

[cols="1,4"]
|===
| Name| Description
| xref:btck/ChainstateManagerOptions/Deleter.adoc[`Deleter`] 
| Custom deleter that forwards to the C destroy function&period;
|===


== Protected Data Members

[cols="1,4"]
|===
| Name| Description
| xref:btck/ChainstateManagerOptions/m_ptr.adoc[`m&lowbar;ptr`] 
| The owned C handle&period;
|===



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