transaction: handle error

This commit is contained in:
Braydon Fuller 2016-05-09 17:54:08 -04:00
parent 87643fba45
commit b446f6733c

View File

@ -231,6 +231,9 @@ TxController.prototype.list = function(req, res) {
}
self.node.services.bitcoind.getBlockHeader(block.hash, function(err, blockInfo) {
if (err) {
return common.handleErrors(err, res);
}
var totalTxs = block.transactions.length;
var txs;