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,