From 9967f780df28177a2419cfb1ccd535a007c41b6c Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 29 Mar 2018 21:56:26 -0700 Subject: [PATCH] Revert "http: fix block call." This reverts commit 4ff93746a02525e66f8485f7747a875ea87166da. --- lib/http/server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/http/server.js b/lib/http/server.js index 1079ce3e..23fb3d97 100644 --- a/lib/http/server.js +++ b/lib/http/server.js @@ -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