From 08fe5a71322c5647d3717db682ed494f3319bb5f Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini Date: Fri, 16 Feb 2024 23:30:40 -0300 Subject: [PATCH] avoid network presync after finished --- packages/engine/paima-runtime/src/runtime-loops.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/engine/paima-runtime/src/runtime-loops.ts b/packages/engine/paima-runtime/src/runtime-loops.ts index 0946352da..c980b0c40 100644 --- a/packages/engine/paima-runtime/src/runtime-loops.ts +++ b/packages/engine/paima-runtime/src/runtime-loops.ts @@ -83,7 +83,7 @@ async function runPresync( doLog( `[paima-runtime] Fetching data from ${network} in range: ${presyncBlockHeight[network]}-${upper[network]}` ); - } else { + } else if (presyncBlockHeight[network]) { doLog( `[paima-runtime] Fetching data from ${network} in block: ${presyncBlockHeight[network]}` );