Merge pull request #156 from cubedro/develop

Version 0.0.7
pull/5/head
Marian OANCΞA 10 years ago
commit 661096eb94
  1. 4
      models/history.js
  2. 2
      package.json

@ -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…
Cancel
Save