diff --git a/lib/bcoin/chain.js b/lib/bcoin/chain.js index 00583224..65ec53a6 100644 --- a/lib/bcoin/chain.js +++ b/lib/bcoin/chain.js @@ -798,10 +798,6 @@ ChainDB.prototype.count = function count() { }; ChainDB.prototype.cache = function cache(entry) { - // Could use this.count() - 1 here as - // long as we're not using saveAsync. - // if (this.tip !== -1) - // assert.equal(this.tip, this.count() - 1); if (entry.height > this.tip) { this.tip = entry.height; delete this._cache[entry.height - this._cacheWindow]; @@ -925,8 +921,6 @@ ChainDB.prototype.saveAsync = function saveAsync(entry, callback) { return this._writeAsync(raw, offset, function(err, success) { var item = self._queue[entry.height]; - assert(item); - // Something tried to write here but couldn't. // Synchronously write it and get it over with. try {