Skip to content

Commit

Permalink
Reduce solana blocks to query
Browse files Browse the repository at this point in the history
  • Loading branch information
vrtnd committed Sep 13, 2024
1 parent fe57df4 commit 1d79d8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/handlers/runAggregateAllAdapters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { runAggregateDataAllAdapters } from "../utils/aggregate";

export default wrapScheduledLambda(async (_event) => {
const currentDate = new Date();
const currentTimestamp = convertToUnixTimestamp(currentDate);
const currentTimestamp = convertToUnixTimestamp(currentDate) - 3600;
await runAggregateDataAllAdapters(currentTimestamp, true);
const currentHour = currentDate.getUTCHours();
if (currentHour === 0) {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const maxBlocksToQueryByChain = {
celo: 1200,
klaytn: 6000,
sui: 2400, // sui creates a checkpoint about every 3 seconds
solana: 12000, // solana produces slots every 400ms, so 2 hours is 18000 slotsб
solana: 6000,
taiko: 100,
} as { [chain: string]: number };

Expand Down

0 comments on commit 1d79d8f

Please sign in to comment.