Browse Source

fix to avoid caching unconfirmed txs

fix-133-memory-crash
Dan Janosik 6 years ago
parent
commit
f852f42de5
No known key found for this signature in database GPG Key ID: C6F8CE9FFDB2CED2
  1. 4
      app/api/coreApi.js

4
app/api/coreApi.js

@ -125,6 +125,10 @@ function tryCacheThenRpcApi(cache, cacheKey, cacheMaxAge, rpcApiFunction, cacheC
}
function shouldCacheTransaction(tx) {
if (!tx.confirmations) {
return false;
}
if (tx.confirmations < 1) {
return false;
}

Loading…
Cancel
Save