From aa0b1728d6cea8353b171498e58b2b51d5203a2f Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini Date: Fri, 1 Mar 2024 02:35:35 -0300 Subject: [PATCH] remove (now) unused arg in runPresyncRound --- packages/engine/paima-runtime/src/runtime-loops.ts | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/packages/engine/paima-runtime/src/runtime-loops.ts b/packages/engine/paima-runtime/src/runtime-loops.ts index ffb4aa0da..14c509033 100644 --- a/packages/engine/paima-runtime/src/runtime-loops.ts +++ b/packages/engine/paima-runtime/src/runtime-loops.ts @@ -56,13 +56,10 @@ async function runPresync( ): Promise { const networks = await GlobalConfig.getInstance(); - const cardanoConfig = await GlobalConfig.cardanoConfig(); - let presyncBlockHeight = await getPresyncStartBlockheight( gameStateMachine, funnelFactory.getExtensions(), - startBlockHeight, - cardanoConfig + startBlockHeight ); if (run) { @@ -101,8 +98,7 @@ async function runPresync( network: network, from: height, to: upper[network], - })), - cardanoConfig + })) ); }); @@ -124,8 +120,7 @@ async function runPresync( async function getPresyncStartBlockheight( gameStateMachine: GameStateMachine, CDEs: ChainDataExtension[], - maximumPresyncBlockheight: number, - cardanoConfig: [string, CardanoConfig] | undefined + maximumPresyncBlockheight: number ): Promise<{ [network: string]: number }> { const config = await GlobalConfig.getInstance(); @@ -156,8 +151,7 @@ async function runPresyncRound( gameStateMachine: GameStateMachine, chainFunnel: ChainFunnel, pollingPeriod: number, - from: ReadPresyncDataFrom, - cardanoConfig: [string, CardanoConfig] | undefined + from: ReadPresyncDataFrom ): Promise<{ [network: string]: number }> { const latestPresyncDataList = await chainFunnel.readPresyncData(from);