Skip to content

Commit

Permalink
Store more blocks in the cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Oct 2, 2023
1 parent 0539f41 commit 7189beb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/export/trace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const trace = async () => {
// Helper function that gets block time for height, cached in memory, which is
// filled in by the NewBlock WebSocket listener.
const blockHeightToTimeCache = new LRUCache<number, number>({
max: 100,
max: 10000,
})
const getBlockTimeUnixMs = async (trace: TracedEvent): Promise<number> => {
const { blockHeight } = trace.metadata
Expand Down

0 comments on commit 7189beb

Please sign in to comment.