Merge pull request #280 from cubedro/develop

removed trusted node check for history update
pull/5/head
Marian OANCΞA 9 years ago
commit afafc7143a
  1. 3
      lib/collection.js

@ -288,7 +288,8 @@ Collection.prototype.getHistory = function()
Collection.prototype.getBestBlockFromItems = function() Collection.prototype.getBestBlockFromItems = function()
{ {
return Math.max(this._blockchain.bestBlockNumber(), _.result(_.max(this._items, function(item) { 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)); }), 'stats.block.number', 0));
} }

Loading…
Cancel
Save