remove logging

This commit is contained in:
Manuel Araoz 2015-04-29 12:26:29 -03:00
parent 630492b67a
commit d6aeb2d81a

View File

@ -210,14 +210,13 @@ BlockService.prototype.listBlocks = function(from, to, offset, limit) {
if (height > end) { if (height > end) {
return; return;
} }
console.log('fetching block', height);
return self.getBlockByHeight(height) return self.getBlockByHeight(height)
.then(function(block) { .then(function(block) {
blocks.push(block.toObject()); blocks.push(block.toObject());
return fetchBlock(height + 1); return fetchBlock(height + 1);
}) })
.catch(function(err) { .catch(function(err) {
console.log(err); // block not found, ignore
}); });
}; };
return fetchBlock(start) return fetchBlock(start)