From 9a35955166e0f5b01037ee8202f12e4a5585f216 Mon Sep 17 00:00:00 2001 From: nikugogoi Date: Fri, 15 Jul 2022 19:08:33 +0530 Subject: [PATCH] Fix job-runner for missing parent block (#143) --- packages/util/src/job-runner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/util/src/job-runner.ts b/packages/util/src/job-runner.ts index 75276795..008e63c8 100644 --- a/packages/util/src/job-runner.ts +++ b/packages/util/src/job-runner.ts @@ -190,7 +190,7 @@ export class JobRunner { const message = `Parent block number ${parentBlockNumber} hash ${parentHash} of block number ${blockNumber} hash ${blockHash} not fetched yet, aborting`; log(message); - return; + throw new Error(message); } if (!parentBlock.isComplete) {