mirror of
https://github.com/cerc-io/watcher-ts
synced 2025-08-03 20:54:07 +00:00
Fix job-runner for missing parent block (#143)
This commit is contained in:
parent
129b9e71f0
commit
9a35955166
@ -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`;
|
const message = `Parent block number ${parentBlockNumber} hash ${parentHash} of block number ${blockNumber} hash ${blockHash} not fetched yet, aborting`;
|
||||||
log(message);
|
log(message);
|
||||||
|
|
||||||
return;
|
throw new Error(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!parentBlock.isComplete) {
|
if (!parentBlock.isComplete) {
|
||||||
|
Loading…
Reference in New Issue
Block a user