http: fix block call.
This commit is contained in:
parent
bab42bbed8
commit
4ff93746a0
@ -279,9 +279,9 @@ HTTPServer.prototype.initRouter = function initRouter() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const height = await this.chain.getHeight(hash);
|
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
|
// Mempool snapshot
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user