Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaituVR committed Jul 29, 2023
1 parent 3ac1263 commit 252309b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/blockfinder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 252309b

Please sign in to comment.