diff --git a/lib/http/server.js b/lib/http/server.js index 23fb3d973..1079ce3e1 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 confirmations = this.chain.height - height; + const depth = this.chain.height - height + 1; - res.send(200, block.getJSON(this.network, view, height, confirmations)); + res.send(200, block.getJSON(this.network, view, height, depth)); }); // Mempool snapshot