Skip to content

Commit

Permalink
patch: prevent cache clearing (#1268)
Browse files Browse the repository at this point in the history
* prevent cache clear

* Update satolist.js
  • Loading branch information
maxgithubprofile authored Aug 22, 2024
1 parent 8fce2b4 commit dd6b7a8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion js/satolist.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,9 @@ Platform = function (app, listofnodes) {
'PDb83yK1KMq9putBFaGuBCfpksUVVDVZcc' : true,
'PGmCWzgCW1CNLkgGSHmgCMKDbuZJia1Bpp' : true,
'PDtHcn5AM7kkx1h7nKZ818vBgxMqojjxup' : true,
'PCQoRv4b4JTF7sCgC2HVXnmpuLNFy8W2D7' : true
'PCQoRv4b4JTF7sCgC2HVXnmpuLNFy8W2D7' : true,
'PAz2RKZhrWpkv1JCFwCnn2aGApHu4n44Uo' : true,
'P9QeLfYqEkQdR9eMZ6D789XDGx2sWJHxSw' : true

}

Expand Down
4 changes: 3 additions & 1 deletion proxy16/server/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

}
Expand Down
1 change: 0 additions & 1 deletion proxy16/transports.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit dd6b7a8

Please sign in to comment.