fix auditor drop

This commit is contained in:
Christian Grothoff 2020-05-19 02:23:57 +02:00
parent 9ed9c01878
commit af28c9b449
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 6 additions and 3 deletions

View File

@ -43,8 +43,8 @@ DROP TABLE IF EXISTS auditor_denominations CASCADE;
DROP TABLE IF EXISTS deposit_confirmations CASCADE; DROP TABLE IF EXISTS deposit_confirmations CASCADE;
DROP TABLE IF EXISTS auditor_exchanges CASCADE; DROP TABLE IF EXISTS auditor_exchanges CASCADE;
-- Drop versioning (0000.sql) -- Drop versioning (auditor-0001.sql)
DROP SCHEMA IF EXISTS _v CASCADE; SELECT _v.unregister_patch('auditor-0001');
-- And we're out of here... -- And we're out of here...
COMMIT; COMMIT;

View File

@ -801,7 +801,7 @@ reload_keys_denom_iter (void *cls,
handle_signal (SIGTERM); handle_signal (SIGTERM);
return GNUNET_SYSERR; return GNUNET_SYSERR;
} }
GNUNET_assert (NULL != dki->denom_priv.rsa_private_key);
GNUNET_log (GNUNET_ERROR_TYPE_INFO, GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Adding denomination key `%s' (%s) to active set\n", "Adding denomination key `%s' (%s) to active set\n",
alias, alias,
@ -1660,6 +1660,9 @@ reload_public_denoms_cb (
GNUNET_h2s (&issue->properties.denom_hash)); GNUNET_h2s (&issue->properties.denom_hash));
return; return;
} }
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Loaded denomination key %s from DB, no private key (hopefully revoked!)\n",
GNUNET_h2s (&issue->properties.denom_hash));
/* we can assert here as we checked for duplicates just above */ /* we can assert here as we checked for duplicates just above */
GNUNET_assert (GNUNET_OK == ret); GNUNET_assert (GNUNET_OK == ret);
} }