|
|
|
@ -44,7 +44,7 @@ Collection.prototype.update = function(id, stats, callback) |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
this._blockchain.clean(this.getBestBlockFromItems()); |
|
|
|
|
// this._blockchain.clean(this.getBestBlockFromItems());
|
|
|
|
|
|
|
|
|
|
var block = this._blockchain.add(stats.block, id, node.trusted); |
|
|
|
|
|
|
|
|
@ -75,7 +75,7 @@ Collection.prototype.addBlock = function(id, stats, callback) |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
this._blockchain.clean(this.getBestBlockFromItems()); |
|
|
|
|
// this._blockchain.clean(this.getBestBlockFromItems());
|
|
|
|
|
|
|
|
|
|
var block = this._blockchain.add(stats, id, node.trusted); |
|
|
|
|
|
|
|
|
@ -142,7 +142,7 @@ Collection.prototype.addHistory = function(id, blocks, callback) |
|
|
|
|
{ |
|
|
|
|
blocks = blocks.reverse(); |
|
|
|
|
|
|
|
|
|
this._blockchain.clean(this.getBestBlockFromItems()); |
|
|
|
|
// this._blockchain.clean(this.getBestBlockFromItems());
|
|
|
|
|
|
|
|
|
|
for (var i = 0; i <= blocks.length - 1; i++) |
|
|
|
|
{ |
|
|
|
|