kernel: Add chainstate loading when instantiating a ChainstateManager

The library will now internally load the chainstate when a new
ChainstateManager is instantiated.

Options for controlling details of loading the chainstate will be added
over the next few commits.
This commit is contained in:
TheCharlatan
2024-05-29 13:28:05 +02:00
parent e2c1bd3d71
commit cb1590b05e
2 changed files with 39 additions and 6 deletions

View File

@@ -755,7 +755,8 @@ BITCOINKERNEL_API void btck_chainstate_manager_options_destroy(btck_ChainstateMa
/**
* @brief Create a chainstate manager. This is the main object for many
* validation tasks as well as for retrieving data from the chain. *
* validation tasks as well as for retrieving data from the chain and
* interacting with its chainstate and indexes.
*
* @param[in] chainstate_manager_options Non-null, created by @ref btck_chainstate_manager_options_create.
* @return The allocated chainstate manager, or null on error.