Skip to content

Commit

Permalink
fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
oXtxNt9U committed Dec 5, 2024
1 parent d7c9a87 commit c0317a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/processor/source/block-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,6 @@ export class BlockProcessor implements Contracts.Processor.BlockProcessor {
return;
}

if (!this.snapshotImporter) {
throw new Error("snapshot importer not loaded");
}

const milestone = this.configuration.getMilestone();

// assume snapshot is present if the previous block points to a non-zero hash
Expand All @@ -203,6 +199,10 @@ export class BlockProcessor implements Contracts.Processor.BlockProcessor {
return;
}

if (!this.snapshotImporter) {
throw new Error("snapshot importer not loaded");
}

Utils.assert.defined(milestone.snapshot);

this.logger.info(`Importing genesis snapshot: ${milestone.snapshot.hash}`);
Expand Down

0 comments on commit c0317a5

Please sign in to comment.