From 66dfce43971de15eb37924b91525d012e60b271d Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 1 Feb 2017 17:15:57 -0800 Subject: [PATCH] chain: avoid getDeployments in spv mode. see #128. --- lib/blockchain/chain.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/blockchain/chain.js b/lib/blockchain/chain.js index 91d4b3aa..113da385 100644 --- a/lib/blockchain/chain.js +++ b/lib/blockchain/chain.js @@ -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); });