diff --git a/lib/blockchain/chain.js b/lib/blockchain/chain.js index 1cef54bc..6ab9a9d8 100644 --- a/lib/blockchain/chain.js +++ b/lib/blockchain/chain.js @@ -2093,10 +2093,12 @@ Chain.prototype.computeBlockVersion = co(function* computeBlockVersion(prev) { Chain.prototype.getDeploymentState = co(function* getDeploymentState() { var prev = yield this.tip.getPrevious(); - if (!prev) + if (!prev) { + assert(this.tip.isGenesis()); return this.state; + } - return yield this.getDeployments(this.tip, prev); + return yield this.getDeployments(this.tip.toHeaders(), prev); }); /**