fix: added missing callback on testing code

This commit is contained in:
sairajzero 2023-01-17 22:43:33 +05:30
parent 269f3f1bd8
commit 9f72d3dd79

View File

@ -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)) {