From 0846f5a7ddd68a14910aa3ee331c879dc38a6a63 Mon Sep 17 00:00:00 2001 From: tilacog Date: Thu, 28 Sep 2023 20:07:58 -0300 Subject: [PATCH] common: warn, don't throw, when subgraph is ahead of chain head --- packages/indexer-common/src/subgraphs.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/indexer-common/src/subgraphs.ts b/packages/indexer-common/src/subgraphs.ts index 2ee8cc00f..0bed4cf18 100644 --- a/packages/indexer-common/src/subgraphs.ts +++ b/packages/indexer-common/src/subgraphs.ts @@ -468,8 +468,7 @@ export class SubgraphFreshnessChecker { if (blockDistance < 0) { // Invariant violated: Subgraph can't be ahead of network latest block const errorMsg = `${this.subgraphName}'s latest indexed block (${latestIndexedBlock}) is higher than Network's latest block (${latestNetworkBlock})` - console.error(errorMsg, logInfo) - throw new Error(errorMsg) + console.warn(errorMsg, logInfo) } if (blockDistance > this.threshold) {