fix blockdb check

This commit is contained in:
Matias Alejo Garcia 2014-05-29 10:47:40 -03:00
parent 99a9050261
commit 108a327d5a
1 changed files with 1 additions and 1 deletions

View File

@ -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,