Skip to content

Commit 125f87c

Browse files
authored
fix error when the presync is empty in parallel evm funnel (#408)
1 parent 8edca1d commit 125f87c

File tree

1 file changed

+1
-1
lines changed
  • packages/engine/paima-funnel/src/funnels/parallelEvm

1 file changed

+1
-1
lines changed

packages/engine/paima-funnel/src/funnels/parallelEvm/funnel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export class ParallelEvmFunnel extends BaseFunnel implements ChainFunnel {
9696
// condition for the presync. So there is no point in starting from
9797
// earlier than that, since we know there are no events there.
9898
cachedState.lastBlock = Math.max(
99-
queryResults[0].block_height,
99+
queryResults[0]?.block_height || cachedState.startBlockHeight - 1,
100100
cachedState.startBlockHeight - 1
101101
);
102102
}

0 commit comments

Comments
 (0)