From be97b3407f5143560e4df36e9976f3b277a1c035 Mon Sep 17 00:00:00 2001 From: Chris Kleeschulte Date: Fri, 18 Aug 2017 20:18:00 +0000 Subject: [PATCH] Fixed isSynced. --- lib/services/block/index.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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);