fix broken adapters

This commit is contained in:
g1nt0ki
2024-04-16 15:35:30 +02:00
parent 6f235afc21
commit 2d05843756
10 changed files with 33 additions and 316 deletions

View File

@@ -425,8 +425,8 @@ setTimeout(() => {
async function initCache() {
let currentCache = await sdk.cache.readCache(INTERNAL_CACHE_FILE)
if (process.env.NO_EXIT_ON_LONG_RUN_RPC)
sdk.log('cache size:', JSON.stringify(currentCache).length, 'chains:', Object.keys(currentCache).length)
// if (process.env.NO_EXIT_ON_LONG_RUN_RPC)
// sdk.log('cache size:', JSON.stringify(currentCache).length, 'chains:', Object.keys(currentCache).length)
const ONE_WEEK = 60 * 60 * 24 * 31
if (!currentCache || !currentCache.startTime || (Date.now() / 1000 - currentCache.startTime > ONE_WEEK)) {
currentCache = {