Fixed response for not returning a header.

This commit is contained in:
Chris Kleeschulte 2017-10-09 09:49:31 -04:00
parent 0fe9d92663
commit 5be6d0d724
No known key found for this signature in database
GPG Key ID: 33195D27EF6BDB7F

View File

@ -175,7 +175,7 @@ BlockController.prototype.blockIndex = function(req, res) {
var self = this;
var height = req.params.height;
self._header.getBlockHeader(parseInt(height), function(err, info) {
if (err) {
if (err || !info) {
return self.common.handleErrors(err, res);
}
res.jsonp({