Skip to content

Commit

Permalink
Merge pull request #187 from klayrHQ/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
Theezr authored Dec 2, 2024
2 parents d71026c + 14ca49f commit 9e5cf87
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/modules/indexer/indexer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,11 @@ export class IndexerService {
await Promise.all([
this.commandBus.execute(new SaveNetworkPeersCommand(blocks.at(0).header.height)),
this.commandBus.execute(new CheckValidatorStatusCommand(blocks.at(0).header.height)),
this.commandBus.execute(new CheckForBlockFinalityCommand()),
]);

await Promise.all([
this.commandBus.execute(new UpdateBlockGeneratorCommand(blocks, chainEvents)),
this.commandBus.execute(new UpdateBlocksFeeCommand(totalBurntPerBlockMap)),
]);
this.commandBus.execute(new CheckForBlockFinalityCommand());
this.commandBus.execute(new UpdateBlockGeneratorCommand(blocks, chainEvents));
this.commandBus.execute(new UpdateBlocksFeeCommand(totalBurntPerBlockMap));

if (this.state.get(Modules.INDEXER) === IndexerState.SYNCING) {
await this.commandBus.execute(new UpdateValidatorRanks());
Expand Down

0 comments on commit 9e5cf87

Please sign in to comment.