From 37550166dd96cd6c4f4fe93f52f3ac3d8328f34d Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Wed, 16 Sep 2015 20:01:02 -0400 Subject: [PATCH] Database: Warn about inconsistent database state. --- lib/services/db.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/services/db.js b/lib/services/db.js index faf42c8b..8bc3bd47 100644 --- a/lib/services/db.js +++ b/lib/services/db.js @@ -122,6 +122,10 @@ DB.prototype.start = function(callback) { } else { self.getBlock(metadata.tip, function(err, tip) { if(err) { + log.warn( + 'Database is in an inconsistent state, a reindex is needed. Could not get current tip:', + metadata.tip + ); return callback(err); } self.tip = tip;