https://cirrus-ci.com/task/5603470202896384?logs=ci#L2681
error = _("Failed to rescan th during initialization");
                return false;
            }
        }
        Instance->m_attaching_chain = false;
        Instance->chainStateFlushed(chain.getTipLocator());
        Instance->GetDatabase().IncrementUpdateCounter();
    }
    Instance->m_attaching_chain = false;
    return true;
}
const CAddressBookData* CWalletFindAddressBookEntry(const CTxDestination& dest, bool allow_change) const
{
    const auto& address_book_it = m_address_book.find(dest);
    if (address_book_it == m_address_book.end()) return nullptr;
    if ((!allow_change) && address_book_it->second.IsChange()) {
        return nullptr;
    }
    return &address_book_it->second;
}
bool CWalletUpgradeWallet(int version, bilingual_str& error)
{
    int prev_version = GetVersion();
    if (version == 0) {
        WalletLogPrintf("Performing  upgrade to %i\n", FEATURE_LATEST);
        version = FEATURE_LATEST;
    } else {
        WalletLogPrintf("Allowing  upgrade up to %i\n", version);
    }
    if (version < prev_version) {