Fixed isSynced.
This commit is contained in:
parent
5785d46258
commit
be97b3407f
@ -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;
|
||||||
@ -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 +
|
log.info('Block Service: The best block hash is: ' + self._tip.hash +
|
||||||
' at height: ' + self._tip.height);
|
' at height: ' + self._tip.height);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user