From 8e2b6506ee552c8bc692821683f0cb38a11499aa Mon Sep 17 00:00:00 2001 From: xrsv Date: Thu, 19 Dec 2024 11:34:44 -0800 Subject: [PATCH] fix: increase cachedRoutes TTL from 1h->12h for WolrdChain (#953) --- lib/util/defaultBlocksToLiveRoutesDB.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/util/defaultBlocksToLiveRoutesDB.ts b/lib/util/defaultBlocksToLiveRoutesDB.ts index 56f811fea9..a08f3187b0 100644 --- a/lib/util/defaultBlocksToLiveRoutesDB.ts +++ b/lib/util/defaultBlocksToLiveRoutesDB.ts @@ -20,7 +20,9 @@ export const DEFAULT_BLOCKS_TO_LIVE_ROUTES_DB: { [chain in ChainId]: number } = [ChainId.BASE_GOERLI]: 1800, [ChainId.ZORA_SEPOLIA]: 1800, [ChainId.BLAST]: 1800, - [ChainId.WORLDCHAIN]: 1800, + // Note: Experiment with longer TTL + // (12 hours) / (2 seconds) = 21600 + [ChainId.WORLDCHAIN]: 21600, // (60 minutes) / (1 seconds) = 3600 [ChainId.ASTROCHAIN_SEPOLIA]: 3600, // (60 minutes) / (250 milliseconds) = 14400