From dd6b7a8b5d29c23824471d4ad6785e18fc40ae93 Mon Sep 17 00:00:00 2001 From: maxgithubprofile <21055122+maxgithubprofile@users.noreply.github.com> Date: Thu, 22 Aug 2024 11:28:53 +0300 Subject: [PATCH] patch: prevent cache clearing (#1268) * prevent cache clear * Update satolist.js --- js/satolist.js | 4 +++- proxy16/server/cache.js | 4 +++- proxy16/transports.js | 1 - 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/js/satolist.js b/js/satolist.js index 02355fc61..fe61a2515 100644 --- a/js/satolist.js +++ b/js/satolist.js @@ -375,7 +375,9 @@ Platform = function (app, listofnodes) { 'PDb83yK1KMq9putBFaGuBCfpksUVVDVZcc' : true, 'PGmCWzgCW1CNLkgGSHmgCMKDbuZJia1Bpp' : true, 'PDtHcn5AM7kkx1h7nKZ818vBgxMqojjxup' : true, - 'PCQoRv4b4JTF7sCgC2HVXnmpuLNFy8W2D7' : true + 'PCQoRv4b4JTF7sCgC2HVXnmpuLNFy8W2D7' : true, + 'PAz2RKZhrWpkv1JCFwCnn2aGApHu4n44Uo' : true, + 'P9QeLfYqEkQdR9eMZ6D789XDGx2sWJHxSw' : true } diff --git a/proxy16/server/cache.js b/proxy16/server/cache.js index c931e8b2b..2caf956a3 100644 --- a/proxy16/server/cache.js +++ b/proxy16/server/cache.js @@ -608,11 +608,13 @@ var Cache = function(p){ if (k.block && k.block < block.height){ storage[key] = {} + if (k.smart){ smart[key] = {} } - //console.log("Invalidate cache", key, k.block, block.height) + + k.block = block.height } } diff --git a/proxy16/transports.js b/proxy16/transports.js index 13d8741a4..e3d21e436 100644 --- a/proxy16/transports.js +++ b/proxy16/transports.js @@ -100,7 +100,6 @@ class WrappedAxios { return axios(preparedArgs) .then(WrappedAxios.handleSuccess) .catch(async (error) => { - console.log('error', error) const isAgentAttached = WrappedAxios.isAgentAttached(preparedArgs); const isAgentError = this.transports.checkForAgentError(error);