Following the merge of https://github.com/bitcoin/bitcoin/pull/23083, we'll throw a non-fatal error at runtime if the documentation for an RPC is incorrect. This behaviour has found numerous issues over a very short period (of the PR being opened). However, this is not something that we want in production / release builds, instead, we want the ability to have it enabled in the CI and when running tests. A runtime option could be added, which controls this behaviour (disabled by default).

#### Useful skills:

- C++
- Understanding of Bitcoin Core's initialization sequence
- Understanding of Bitcoin Core's RPC interface

#### Want to work on this issue?

For guidance on contributing, please read [CONTRIBUTING.md](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md) before opening your pull request.

const int64_t load_block_index_start_time = GetTimeMillis();
        std::optional<ChainstateLoadingError> maybe_load_error;
        try {
            maybe_load_error = LoadChainstate(fReset,
                                              chainman,
                                              Assert(node.mempool.get()),
                                              fPruneMode,
                                              chainparams.GetConsensus(),
                                              fReindexChainState,
                                              cache_sizes.block_tree_db,
                                              cache_sizes.coins_db,
                                              cache_sizes.coins,
                                              *ble,
                                              *coe,
                                              *shdownRequested,
                                              *co {
                                                  uiInterface.ThreadSafeMessageBox(
                                                                                   _("Error reading from database, shutting down."),
                                                                                   "", CClientUIInterface::MSG_ERROR);
                                              });
        } catch (const std::exception& e) {
            LogPrintf("%s\n", e.what());
            maybe_load_error = ChainstateLoadingError::ERROR_GENERIC_BLOCKDB_OPEN_FAILED;
        }
        if (maybe_load_error.has_value()) {
            switch (maybe_load_error.value()) {
            case ChainstateLoadingError::ERROR_LOADING_BLOCK_DB:
                strLoadError = _("Error loading block database");
                break;
            case ChainstateLoadingError::ERROR_BAD_GENESIS_BLOCK: