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
commit 899182eb0f

View File

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