Fix confirmations not found

This commit is contained in:
Node 2017-10-20 15:00:56 +04:00
parent 6bc8701f23
commit e59ed00b57
No known key found for this signature in database
GPG Key ID: 8E1B4DC29040BD90

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