Revert "http: fix block call."

This reverts commit 4ff93746a0.
This commit is contained in:
Christopher Jeffrey 2018-03-29 21:56:26 -07:00
parent 31651ce76e
commit 9967f780df
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -279,9 +279,9 @@ HTTPServer.prototype.initRouter = function initRouter() {
}
const height = await this.chain.getHeight(hash);
const depth = this.chain.height - height + 1;
const confirmations = this.chain.height - height;
res.send(200, block.getJSON(this.network, view, height, depth));
res.send(200, block.getJSON(this.network, view, height, confirmations));
});
// Mempool snapshot