From 252309bc77916197a3b05d33a096d14891492581 Mon Sep 17 00:00:00 2001 From: ChaituVR Date: Sun, 30 Jul 2023 00:10:16 +0530 Subject: [PATCH] Add comment --- src/utils/blockfinder.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/blockfinder.ts b/src/utils/blockfinder.ts index 561b64199..647fa828a 100644 --- a/src/utils/blockfinder.ts +++ b/src/utils/blockfinder.ts @@ -19,6 +19,7 @@ export async function getSnapshots(network, snapshot, provider, networks) { // Reset cache every hour if (expirationTime < now) { cache = {}; + // Set expiration time to next hour expirationTime = now + 60 * 60 * 1000 - (now % (60 * 60 * 1000)); }