transaction: handle error
This commit is contained in:
parent
87643fba45
commit
b446f6733c
@ -231,6 +231,9 @@ TxController.prototype.list = function(req, res) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
self.node.services.bitcoind.getBlockHeader(block.hash, function(err, blockInfo) {
|
self.node.services.bitcoind.getBlockHeader(block.hash, function(err, blockInfo) {
|
||||||
|
if (err) {
|
||||||
|
return common.handleErrors(err, res);
|
||||||
|
}
|
||||||
var totalTxs = block.transactions.length;
|
var totalTxs = block.transactions.length;
|
||||||
var txs;
|
var txs;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user