https://travis-ci.org/github/bitcoin/bitcoin/jobs/679885530#L8791
}
            }
        }
        walletInstance->chainStateFlushed(chain.getTipLocator());
    } else if (wallet_creation_flags & WALLET_FLAG_DISABLE_PRIVATE_KEYS) {
        
        error = strprintf(_("Error loading %s: Private keys can only be disabled during creation"), walletFile);
        return NULL;
    } else if (walletInstance->IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS)) {
        for (auto spk_man : walletInstance->GetActiveScriptPubKeyMans()) {
            if (spk_man->HavePrivateKeys()) {
                warnings.push_back(strprintf(_("Warning: Private keys detected in wallet {%s} with disabled private keys"), walletFile));
                break;
            }
        }
    }
    if (!gArgs.GetArg("-addresstype", "").empty()) {
        if (!ParseOutputType(gArgs.GetArg("-addresstype", ""), walletInstance->m_default_address_type)) {
            error = strprintf(_("Unknown address type '%s'"), gArgs.GetArg("-addresstype", ""));
            return nullptr;
        }
    }
    if (!gArgs.GetArg("-changetype", "").empty()) {
        OutputType out_type;
        if (!ParseOutputType(gArgs.GetArg("-changetype", ""), out_type)) {
            error = strprintf(_("Unknown change type '%s'"), gArgs.GetArg("-changetype", ""));
            return nullptr;
        }
        walletInstance->m_default_change_type = out_type;
    }