From 0925b738b9858cc106f0177e3b06f56153efb628 Mon Sep 17 00:00:00 2001 From: cubedro Date: Mon, 1 Jun 2015 23:22:34 +0300 Subject: [PATCH] fixed add block error --- models/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;