Browse Source
fix to avoid caching unconfirmed txs
fix-133-memory-crash
Dan Janosik
6 years ago
No known key found for this signature in database
GPG Key ID: C6F8CE9FFDB2CED2
1 changed files with
4 additions and
0 deletions
-
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; |
|
|
|
} |
|
|
|