From e59ed00b57ad9c117f0931c602cb7ffc621b71d7 Mon Sep 17 00:00:00 2001 From: Node Date: Fri, 20 Oct 2017 15:00:56 +0400 Subject: [PATCH] Fix confirmations not found --- lib/http/server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/http/server.js b/lib/http/server.js index b38d7534..23fb3d97 100644 --- a/lib/http/server.js +++ b/lib/http/server.js @@ -279,6 +279,7 @@ HTTPServer.prototype.initRouter = function initRouter() { } const height = await this.chain.getHeight(hash); + const confirmations = this.chain.height - height; res.send(200, block.getJSON(this.network, view, height, confirmations)); });