diff --git a/lib/database.js b/lib/database.js index 619f3a15e..93b04eda4 100644 --- a/lib/database.js +++ b/lib/database.js @@ -639,6 +639,7 @@ module.exports = { if (blockhash) { lib.get_block(blockhash, function(block) { if (block) { + try { lib.syncLoop(block.tx.length, function (subloop) { var i = subloop.iteration(); Tx.findOne({txid: block.tx[i]}, function(err, tx) { @@ -664,6 +665,7 @@ module.exports = { block = null; loop.next(); }); + } catch (e) {} } else { console.log('block not found: %s', blockhash); loop.next();