Skip to content

Commit

Permalink
remove (now) unused arg in runPresyncRound
Browse files Browse the repository at this point in the history
  • Loading branch information
ecioppettini committed Mar 4, 2024
1 parent faa2203 commit aa0b172
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions packages/engine/paima-runtime/src/runtime-loops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,10 @@ async function runPresync(
): Promise<void> {
const networks = await GlobalConfig.getInstance();

const cardanoConfig = await GlobalConfig.cardanoConfig();

let presyncBlockHeight = await getPresyncStartBlockheight(
gameStateMachine,
funnelFactory.getExtensions(),
startBlockHeight,
cardanoConfig
startBlockHeight
);

if (run) {
Expand Down Expand Up @@ -101,8 +98,7 @@ async function runPresync(
network: network,
from: height,
to: upper[network],
})),
cardanoConfig
}))
);
});

Expand All @@ -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();

Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit aa0b172

Please sign in to comment.