Merge pull request #345 from nodar-chkuaselidze/fix/confirms

Fix confirmations not found
This commit is contained in:
Buck Perley 2017-10-20 11:06:37 -07:00 committed by GitHub
commit bab42bbed8

View File

@ -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));
});