From f0768027c9582f62dc75014b8822b420fdf51cc4 Mon Sep 17 00:00:00 2001 From: tripathyr Date: Mon, 24 Jan 2022 18:06:15 +0530 Subject: [PATCH] Update index.js --- lib/services/header/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/services/header/index.js b/lib/services/header/index.js index 4f2bb78b..5dd162bb 100644 --- a/lib/services/header/index.js +++ b/lib/services/header/index.js @@ -607,7 +607,7 @@ HeaderService.prototype._getHeader = function(height, hash, callback) { /*jshint -W018 */ if (!hash && !(height >= 0)) { /*jshint +W018 */ - return callback(new Error('invalid arguments')); + return callback(log.error('invalid arguments')); } if (height === self._lastHeader.height || hash === self._lastHeader.hash) { @@ -907,7 +907,7 @@ HeaderService.prototype.getEndHash = function(tip, blockCount, callback) { } if (numResultsNeeded <= 0) { - return callback(new Error('Header Service: block service is mis-aligned ')); + return callback(log.error('Header Service: block service is mis-aligned ')); } var startingHeight = tip.height + 1;