Skip to content

Commit

Permalink
fix upper range querying extra data
Browse files Browse the repository at this point in the history
  • Loading branch information
ecioppettini committed Apr 16, 2024
1 parent 60f514b commit 9cf6109
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/engine/paima-funnel/src/funnels/mina/funnel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export class MinaFunnel extends BaseFunnel implements ChainFunnel {
);

let confirmedTimestamp;

while (true) {
const confirmedSlot = await findMinaConfirmedSlot(cachedState.pg);

Expand All @@ -103,7 +104,7 @@ export class MinaFunnel extends BaseFunnel implements ChainFunnel {
const fromTimestamp =
this.cache.getState().lastPoint?.timestamp || cachedState.startingSlotTimestamp;

const toTimestamp = Math.max(confirmedTimestamp, maxBaseTimestamp);
const toTimestamp = maxBaseTimestamp;

const fromSlot = minaTimestampToSlot(
fromTimestamp,
Expand Down

0 comments on commit 9cf6109

Please sign in to comment.