https://cirrus-ci.com/task/5603470202896384?logs=ci#L2681
return nullptr;
    }
    const fspath _path = fsbridgeAbsPathJoin(GetWalletDir(), fsu8path(_name));
    if (fsexists(_path) || !TryCreateDirectories(_path)) {
        error = Untranslated(strprintf("Failed to create database path '%s'. Database already exists.", fsPathToString(_path)));
        status = DatabaseStatusFAILED_ALREADY_EXISTS;
        return nullptr;
    }
    auto _file = _path / ".dat";
    fscopy_file(backup_file, _file, fscopy_optionsnone);
    auto  = LoadWallet(context, _name, load_on_start, options, status, error, warnings);
    if (!) {
        fsremove(_file);
        fsremove(_path);
    }
    return ;
}
/** @defgroup mapWallet
 *
 * @{
 */
const CWalletTx* CWalletGetWalletTx(const uint256& hash) const
{
    AssertLockHeld(cs_);
    const auto it = mapWallet.find(hash);
    if (it == mapWallet.end())
        return nullptr;
    return &(it->second);
}
void CWalletUpgradeKeyMetadata()