peer: minor - fix peer.sync().

This commit is contained in:
Christopher Jeffrey 2016-10-24 20:49:18 -07:00
parent 48c65bb58b
commit ef387f969f
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -2493,7 +2493,7 @@ Peer.prototype.sync = function sync() {
return Promise.resolve();
if (this.options.witness && !this.version.hasWitness())
return;
return Promise.resolve();
if (!this.isLoader()) {
if (!this.chain.synced)