Commit ae912c21 authored by Sietse Ringers's avatar Sietse Ringers

fix: irma server allows noninitialized accumulator chains on startup

parent 4e3ff0dc
......@@ -162,8 +162,12 @@ func (s *Server) verifyPrivateKeys(configuration *server.Configuration) error {
if err != nil {
return server.LogError(err)
}
if err = db.LoadCurrent(); err != nil {
return server.LogError(err)
if !db.Enabled() {
s.conf.Logger.WithFields(logrus.Fields{"cred": credid}).Warn("revocation supported in scheme but not enabled")
} else {
if err = db.LoadCurrent(); err != nil {
return server.LogError(err)
}
}
}
}
......
......@@ -362,6 +362,7 @@ func revocationSession(t *testing.T, client *irmaclient.Client, options ...sessi
func TestRevocation(t *testing.T) {
// setup client, constants, and revocation key material
defer test.ClearTestStorage(t)
client, _ := parseStorage(t)
iss := irma.NewIssuerIdentifier("irma-demo.MijnOverheid")
cred := irma.NewCredentialTypeIdentifier("irma-demo.MijnOverheid.root")
......
......@@ -26,7 +26,7 @@ var (
)
func init() {
logger.Level = logrus.TraceLevel
logger.Level = logrus.ErrorLevel
logger.Formatter = &prefixed.TextFormatter{ForceFormatting: true, ForceColors: true}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment