Skip to content

Commit

Permalink
Fixed isSynced.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Kleeschulte committed Aug 18, 2017
1 parent 5785d46 commit be97b34
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/services/block/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit be97b34

Please sign in to comment.