https://cirrus-ci.com/task/5603470202896384?logs=ci#L2681
assert( // This is a critical error, the new db could not be written to. The original db exists as a backup, but we should not continue execution.
        }
    }
    bool committed = batch->TxnCommit();
    assert(committed); // This is a critical error, the new db could not be written to. The original db exists as a backup, but we should not continue execution.
    return true;
}
stdoptional<MigrationData> CWalletGetDescriptorsForLegacy(bilingual_str& error) const
{
    AssertLockHeld(cs_);
    LegacyScriptPubKeyMan* legacy_spkm = GetLegacyScriptPubKeyMan();
    if (!legacy_spkm) {
        error = _("Error This  is already a  ");
        return stdnullopt;
    }
    stdoptional<MigrationData> res = legacy_spkm->MigrateToDescriptor();
    if (res == stdnullopt) {
        error = _("Error Unable to produce s for this legacy . Make sure th is unlocked first");
        return stdnullopt;
    }
    return res;
}
bool CWalletApplyMigrationData(MigrationData& data, bilingual_str& error)
{
    AssertLockHeld(cs_);
    LegacyScriptPubKeyMan* legacy_spkm = GetLegacyScriptPubKeyMan();
    if (!legacy_spkm) {
        error = _("Error This  is already a  ");
        return false;
    }