|
|
|
@ -169,7 +169,7 @@ History.prototype.add = function(block, id, trusted, addingHistory) |
|
|
|
|
propagTimes: [] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if( this._items.length === 0 || (this._items.length === MAX_HISTORY && block.number > this.worstBlockNumber() && !addingHistory) || (this._items.length < MAX_HISTORY && block.number < this.bestBlockNumber()) ) |
|
|
|
|
if( this._items.length === 0 || (this._items.length === MAX_HISTORY && block.number > this.worstBlockNumber()) || (this._items.length < MAX_HISTORY && block.number < this.bestBlockNumber() && addingHistory) ) |
|
|
|
|
{ |
|
|
|
|
item.propagTimes.push({ |
|
|
|
|
node: id, |
|
|
|
@ -634,7 +634,8 @@ History.prototype.getCharts = function() |
|
|
|
|
|
|
|
|
|
History.prototype.requiresUpdate = function() |
|
|
|
|
{ |
|
|
|
|
return ( this._items.length < MAX_HISTORY && !_.isEmpty(this._items) ); |
|
|
|
|
// return ( this._items.length < MAX_HISTORY && !_.isEmpty(this._items) );
|
|
|
|
|
return ( this._items.length < MAX_HISTORY ); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
History.prototype.getHistoryRequestRange = function() |
|
|
|
|