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:
parent
8715aa5071
commit
375ee80b5d
@ -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
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user