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
1 changed files with 4 additions and 1 deletions

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;
});
}