https://cirrus-ci.com/task/5603470202896384?logs=ci#L2681
context.chain->initMessage(_("Loading …").translated);
    const stdshared_ptr<CWallet>  = CWalletCreate(context, name, stdmove(database), _creation_flags, error, warnings);
    if (!) {
        error = Untranslated("Wallet creation failed.") + Untranslated(" ") + error;
        status = DatabaseStatusFAILED_CREATE;
        return nullptr;
    }
    // E
    if (!passphrempty() && !(_creation_flags & WALLET_FLAG_DISABLE_PRIVATE_KEYS)) {
        if (!->EncryptWallet(passphrase)) {
            error = Untranslated("Error Wallet created but failed to encrypt.");
            status = DatabaseStatusFAILED_ENCRYPT;
            return nullptr;
        }
        if (!create_blank) {
            // U
            if (!->Unlock(passphrase)) {
                error = Untranslated("Error Wallet was encrypted but could not be unlocked");
                status = DatabaseStatusFAILED_ENCRYPT;
                return nullptr;
            }
            // S
            {
                LOCK(->cs_);
                if (->IsWalletFlagSet(WALLET_FLAG_DESCRIPTORS)) {
                    ->SetupDescriptorScriptPubKeyMans();
                } else {
                    for (auto spk_man  ->GetActiveScriptPubKeyMans()) {
                        if (!spk_man->SetupGeneration()) {
                            error = Untranslated("Unable to generate initial keys");