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

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

== Synopsis

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

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

== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:kernel/BlockManagerOpts/block_tree_db_params.adoc[`block&lowbar;tree&lowbar;db&lowbar;params`] 
| Parameters for opening the block tree database&period;
| xref:kernel/BlockManagerOpts/blocks_dir.adoc[`blocks&lowbar;dir`] 
| Directory that holds the block and undo files&period;
| xref:kernel/BlockManagerOpts/chainparams.adoc[`chainparams`] 
| Chain parameters governing the block storage&period;
| xref:kernel/BlockManagerOpts/fast_prune.adoc[`fast&lowbar;prune`] 
| Whether to prune aggressively, mainly for testing&period;
| xref:kernel/BlockManagerOpts/notifications.adoc[`notifications`] 
| Sink for block storage notifications&period;
| xref:kernel/BlockManagerOpts/prune_target.adoc[`prune&lowbar;target`] 
| Target size, in bytes, to prune the block files down to (0 disables pruning)&period;
| xref:kernel/BlockManagerOpts/use_xor.adoc[`use&lowbar;xor`] 
| Whether to obfuscate (XOR) block files on disk&period;
|===



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