From 9f72d3dd791879e41bbdece2ab0301051adb54a4 Mon Sep 17 00:00:00 2001 From: sairajzero Date: Tue, 17 Jan 2023 22:43:33 +0530 Subject: [PATCH] fix: added missing callback on testing code --- lib/services/block/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/services/block/index.js b/lib/services/block/index.js index e20ef0c9..614cefbb 100644 --- a/lib/services/block/index.js +++ b/lib/services/block/index.js @@ -939,8 +939,10 @@ BlockService.prototype._processBlock = function(block, callback) { //Manually ignore a block for testing __TestingCount--; - if(__TestingCount === 0) - return console.debug("TESTING: Ignored block"); + if(__TestingCount === 0){ + console.debug("TESTING: Ignored block"); + return callback(); + } // common case if (!self._detectReorg(block)) {