[#btck_chainstate_manager_options_set_wipe_dbs] = btck_chainstate_manager_options_set_wipe_dbs :mrdocs: Sets wipe db in the options. In combination with calling xref:btck_chainstate_manager_import_blocks.adoc[`btck_chainstate_manager_import_blocks`] this triggers either a full reindex, or a reindex of just the chainstate database. == Synopsis Declared in `<kernel/bitcoinkernel.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard, __nonnull__]] int btck_chainstate_manager_options_set_wipe_dbs( xref:btck_ChainstateManagerOptions-08.adoc[btck_ChainstateManagerOptions]* chainstate_manager_options, int wipe_block_tree_db, int wipe_chainstate_db); ---- == Description [NOTE] ==== When a wipe is set, the caller must invoke xref:btck_chainstate_manager_import_blocks.adoc[`btck_chainstate_manager_import_blocks`] on the resulting chainstate manager before using it for anything else. ==== == Return Value 0 if the set was successful, non‐zero if the set failed. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *chainstate_manager_options* [in] | Non‐null, created by xref:btck_chainstate_manager_options_create.adoc[`btck_chainstate_manager_options_create`]. | *wipe_block_tree_db* [in] | Set wipe block tree db. Should only be 1 if wipe_chainstate_db is 1 too. | *wipe_chainstate_db* [in] | Set wipe chainstate db. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#