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