commit
661096eb94
@ -109,12 +109,12 @@ History.prototype._save = function(block)
|
|||||||
{
|
{
|
||||||
this._items.unshift(block);
|
this._items.unshift(block);
|
||||||
|
|
||||||
|
this._items = _.sortByOrder( this._items, 'height', false );
|
||||||
|
|
||||||
if(this._items.length > MAX_HISTORY)
|
if(this._items.length > MAX_HISTORY)
|
||||||
{
|
{
|
||||||
this._items.pop();
|
this._items.pop();
|
||||||
}
|
}
|
||||||
|
|
||||||
this._items = _.sortByOrder( this._items, 'height', false );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
History.prototype.search = function(number)
|
History.prototype.search = function(number)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "eth-netstats",
|
"name": "eth-netstats",
|
||||||
"description": "Ethereum Network Intelligence dashboard",
|
"description": "Ethereum Network Intelligence dashboard",
|
||||||
"version": "0.0.6",
|
"version": "0.0.7",
|
||||||
"private": true,
|
"private": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "0.12.0",
|
"node": "0.12.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user