|
@ -325,21 +325,23 @@ function getRawTransactions(txids) { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (txids.length == 1 && txids[0] == coins[env.coin].genesisCoinbaseTransactionId) { |
|
|
if (coins[env.coin].genesisCoinbaseTransactionId) { |
|
|
// copy the "confirmations" field from genesis block to the genesis-coinbase tx
|
|
|
if (txids.length == 1 && txids[0] == coins[env.coin].genesisCoinbaseTransactionId) { |
|
|
getBlockByHeight(0).then(function(blockZeroResult) { |
|
|
// copy the "confirmations" field from genesis block to the genesis-coinbase tx
|
|
|
var result = coins[env.coin].genesisCoinbaseTransaction; |
|
|
getBlockByHeight(0).then(function(blockZeroResult) { |
|
|
result.confirmations = blockZeroResult.getblock.confirmations; |
|
|
var result = coins[env.coin].genesisCoinbaseTransaction; |
|
|
|
|
|
result.confirmations = blockZeroResult.getblock.confirmations; |
|
|
|
|
|
|
|
|
resolve([result]); |
|
|
resolve([result]); |
|
|
|
|
|
|
|
|
}).catch(function(err) { |
|
|
}).catch(function(err) { |
|
|
reject(err); |
|
|
reject(err); |
|
|
|
|
|
|
|
|
return; |
|
|
return; |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
return; |
|
|
return; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var requests = []; |
|
|
var requests = []; |
|
@ -387,7 +389,7 @@ function executeBatchesSequentiallyInternal(batchId, batches, currentIndex, accu |
|
|
results.forEach((item) => { |
|
|
results.forEach((item) => { |
|
|
accumulatedResults.push(item); |
|
|
accumulatedResults.push(item); |
|
|
|
|
|
|
|
|
count--; |
|
|
count--; |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
if (count == 0) { |
|
|
if (count == 0) { |
|
|