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) {
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);