remove logging
This commit is contained in:
parent
630492b67a
commit
d6aeb2d81a
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user