From 4f52cf2979d129d6192ffb1eda6e9d798a1f8985 Mon Sep 17 00:00:00 2001 From: Paul Noel Date: Mon, 9 Sep 2024 13:29:29 -0500 Subject: [PATCH] watcher: findGaps: skip large gaps --- watcher/scripts/findGaps.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/watcher/scripts/findGaps.ts b/watcher/scripts/findGaps.ts index 6677e0a9..dfa0affc 100644 --- a/watcher/scripts/findGaps.ts +++ b/watcher/scripts/findGaps.ts @@ -135,10 +135,10 @@ const allEntries: Chain[] = [...evmEntries, ...moveEntries, ...solanaEntries]; console.log( `Gap is too large to record for emitter ${emitter} between ${seq} and ${sequence}` ); - continue; - } - for (let i = seq + 1; i < sequence; i++) { - missingVAAs.push(`${chainId}/${emitter}/${i}`); + } else { + for (let i = seq + 1; i < sequence; i++) { + missingVAAs.push(`${chainId}/${emitter}/${i}`); + } } } emitterMap.set(emitter, sequence);