Fix confirmations not found
This commit is contained in:
parent
6bc8701f23
commit
e59ed00b57
@ -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));
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user