diff --git a/ethereal/main.go b/ethereal/main.go index 7b157f3dbf..dd4f1245af 100644 --- a/ethereal/main.go +++ b/ethereal/main.go @@ -31,6 +31,7 @@ func run() error { err := utils.DBSanityCheck(db) if err != nil { ErrorWindow(err) + os.Exit(1) } diff --git a/ethereum/main.go b/ethereum/main.go index 937a2b399f..9d07ab0d41 100644 --- a/ethereum/main.go +++ b/ethereum/main.go @@ -40,6 +40,11 @@ func main() { utils.InitLogging(Datadir, LogFile, LogLevel, DebugFile) db := utils.NewDatabase() + err := utils.DBSanityCheck(db) + if err != nil { + logger.Errorln(err) + os.Exit(1) + } keyManager := utils.NewKeyManager(KeyStore, Datadir, db)