From 108a327d5a2cabdf65b300e06a2eb1e8edf94c24 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Thu, 29 May 2014 10:47:40 -0300 Subject: [PATCH] fix blockdb check --- lib/BlockDb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/BlockDb.js b/lib/BlockDb.js index a172c0e8..1d30e316 100644 --- a/lib/BlockDb.js +++ b/lib/BlockDb.js @@ -283,7 +283,7 @@ BlockDb.prototype.fromHashWithInfo = function(hash, cb) { self.getHeight(hash, function(err, height) { if (err) return cb(err); - info.isMainChain = height ? true : false; + info.isMainChain = height>=0 ? true : false; return cb(null, { hash: hash,