Update index.js
This commit is contained in:
parent
f0768027c9
commit
9c0ec67ccf
@ -607,7 +607,7 @@ HeaderService.prototype._getHeader = function(height, hash, callback) {
|
|||||||
/*jshint -W018 */
|
/*jshint -W018 */
|
||||||
if (!hash && !(height >= 0)) {
|
if (!hash && !(height >= 0)) {
|
||||||
/*jshint +W018 */
|
/*jshint +W018 */
|
||||||
return callback(log.error('invalid arguments'));
|
return callback('invalid arguments');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (height === self._lastHeader.height || hash === self._lastHeader.hash) {
|
if (height === self._lastHeader.height || hash === self._lastHeader.hash) {
|
||||||
@ -907,7 +907,7 @@ HeaderService.prototype.getEndHash = function(tip, blockCount, callback) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (numResultsNeeded <= 0) {
|
if (numResultsNeeded <= 0) {
|
||||||
return callback(log.error('Header Service: block service is mis-aligned '));
|
return callback('Header Service: block service is mis-aligned ');
|
||||||
}
|
}
|
||||||
|
|
||||||
var startingHeight = tip.height + 1;
|
var startingHeight = tip.height + 1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user