From 2c94fec64d2ecee3b1bf76a9060bd8548ab21994 Mon Sep 17 00:00:00 2001 From: Tom Beynon Date: Tue, 13 Feb 2024 10:20:39 +0000 Subject: [PATCH] Keep blocks for 4 hours rather than 6 --- chains/blockMonitor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chains/blockMonitor.js b/chains/blockMonitor.js index 804f478..d06e7cf 100644 --- a/chains/blockMonitor.js +++ b/chains/blockMonitor.js @@ -112,7 +112,7 @@ function BlockMonitor() { const processed = processBlock(block) debugLog(chain.path, 'Caching height', processed.height) await client.json.set(`blocks:${chain.path}#${processed.height}`, '$', processed) - await client.expire(`blocks:${chain.path}#${processed.height}`, 60 * 60 * 6) + await client.expire(`blocks:${chain.path}#${processed.height}`, 60 * 60 * 4) return processed }