Fixed isSynced.

This commit is contained in:
Chris Kleeschulte 2017-08-18 20:18:00 +00:00
parent 5785d46258
commit be97b3407f

View File

@ -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) { BlockService.prototype.start = function(callback) {
var self = this; var self = this;
@ -626,6 +622,7 @@ 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 + log.info('Block Service: The best block hash is: ' + self._tip.hash +
' at height: ' + self._tip.height); ' at height: ' + self._tip.height);