Make sure it is the initial sync to log Sync Complete

this prevents logging of Sync Complete every time a new block is added
This commit is contained in:
Sky Young 2018-08-27 12:13:00 -07:00
parent 8715aa5071
commit 375ee80b5d
2 changed files with 2 additions and 2 deletions

View File

@ -578,7 +578,7 @@ HeaderService.prototype._syncComplete = function() {
var syncComplete = bestHeight === this._tip.height
if (syncComplete)
if (syncComplete && this._initialSync)
log.info("Header Service: Sync Complete!")
return syncComplete

View File

@ -5,7 +5,7 @@
"node": ">=8.0.0"
},
"author": "BitPay <dev@bitpay.com>",
"version": "5.0.0-beta.70",
"version": "5.0.0-beta.72",
"main": "./index.js",
"repository": "git://github.com/oipwg/flocore-node.git",
"homepage": "https://github.com/oipwg/flocore-node",