diff --git a/models/node.js b/models/node.js index 559faa9..2c7b4c4 100644 --- a/models/node.js +++ b/models/node.js @@ -143,7 +143,7 @@ Node.prototype.setStats = function(stats, history) Node.prototype.setBlock = function(block, history) { - if( !_.isUndefined(block) && !_.isUndefined(block.block.number) ) + if( !_.isUndefined(block) && !_.isUndefined(block.number) ) { this.history = history; var propagationAvg = 0;