From a0c3bc238bc7c2cb28535fc884f946f1ecc3a5b5 Mon Sep 17 00:00:00 2001 From: cubedro Date: Mon, 19 Oct 2015 12:42:07 +0300 Subject: [PATCH] removed trusted node check for history update --- lib/collection.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/collection.js b/lib/collection.js index 422cd12..3e7e0fc 100644 --- a/lib/collection.js +++ b/lib/collection.js @@ -288,7 +288,8 @@ Collection.prototype.getHistory = function() Collection.prototype.getBestBlockFromItems = function() { return Math.max(this._blockchain.bestBlockNumber(), _.result(_.max(this._items, function(item) { - return ( !item.trusted ? 0 : item.stats.block.number ); + // return ( !item.trusted ? 0 : item.stats.block.number ); + return ( item.stats.block.number ); }), 'stats.block.number', 0)); }