Skip to content

Commit

Permalink
backpressure log
Browse files Browse the repository at this point in the history
  • Loading branch information
kyscott18 committed Sep 24, 2024
1 parent 8ffa323 commit ec0a05c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/core/src/sync/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,16 @@ export const createSync = async (args: CreateSyncParameters): Promise<Sync> => {
hexToNumber(ued.block.number) > hexToNumber(event.block.number),
);

if (
getChainCheckpoint({ syncProgress, network, tag: "finalized" })! >
getOmnichainCheckpoint("current")!
) {
args.common.logger.warn({
service: "sync",
msg: `Finalized block for '${network.name}' has surpassed overall indexing checkpoint`,
});
}

// Add finalized blocks, logs, transactions, receipts, and traces and intervals to the sync-store.

await Promise.all([
Expand Down

0 comments on commit ec0a05c

Please sign in to comment.