chain: avoid getDeployments in spv mode. see #128.

This commit is contained in:
Christopher Jeffrey 2017-02-01 17:15:57 -08:00
parent 87f9d58d47
commit 66dfce4397
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -2148,6 +2148,9 @@ Chain.prototype.getDeploymentState = co(function* getDeploymentState() {
return this.state;
}
if (this.options.spv)
return this.state;
return yield this.getDeployments(this.tip.toHeaders(), prev);
});