diff --git a/lib/services/block/index.js b/lib/services/block/index.js index e9f180cb..8f632711 100644 --- a/lib/services/block/index.js +++ b/lib/services/block/index.js @@ -132,10 +132,6 @@ BlockService.prototype.getRawBlock = function(hash, callback) { }); }; -BlockService.prototype.isSynced = function(callback) { - callback(null, this._p2p.getBestHeight <= this._tip.height); -}; - BlockService.prototype.start = function(callback) { var self = this; @@ -625,7 +621,8 @@ BlockService.prototype._sync = function() { } - this._header.blockServiceSyncing = false; + this._header.blockServiceSyncing = false; + this._initialSync = false; log.info('Block Service: The best block hash is: ' + self._tip.hash + ' at height: ' + self._tip.height);