Browse Source

armor

fix-133-memory-crash
Dan Janosik 7 years ago
parent
commit
8bd1df2bc7
  1. 7
      app/api/coreApi.js
  2. 2
      app/utils.js

7
app/api/coreApi.js

@ -305,10 +305,11 @@ function getRawTransactions(txids) {
} else {
var queriedTx = queriedTxs[queriedTxsCurrentIndex];
if (queriedTx != null) {
combinedTxs.push(queriedTx);
combinedTxs.push(queriedTx);
txCache.set("getRawTransaction-" + queriedTx.txid, queriedTx, 3600000);
txCache.set("getRawTransaction-" + queriedTx.txid, queriedTx, 3600000);
}
queriedTxsCurrentIndex++;
}

2
app/utils.js

@ -150,7 +150,7 @@ function seededRandomIntBetween(seed, min, max) {
}
function getMinerFromCoinbaseTx(tx) {
if (tx == null) {
if (tx == null || tx.vin == null || tx.vin.length == 0) {
return null;
}

Loading…
Cancel
Save