Merge pull request #72 from cubedro/develop

Added tx property check
This commit is contained in:
Marian OANCΞA
2015-04-15 22:50:33 +03:00

View File

@@ -293,7 +293,10 @@ Node.prototype.txDensityChart = function()
{
return txDensity = _.map(this.blocks, function(block)
{
return block.transactions.length;
if(typeof block.transactions !== 'undefined')
return block.transactions.length;
return 0;
});
}