add current height to /v1/node
This commit is contained in:
parent
62948352d9
commit
749b8db70c
@ -21,6 +21,7 @@ describe('BitcoreHTTP v1 node routes', function() {
|
||||
peerCount: 8,
|
||||
version: 'test',
|
||||
network: 'test',
|
||||
height: 1234,
|
||||
};
|
||||
nodeMock.getStatus = function() {
|
||||
return Promise.resolve(nodeMock.status);
|
||||
|
||||
@ -188,6 +188,7 @@ BitcoreNode.prototype.getStatus = function() {
|
||||
peerCount: this.networkMonitor.getConnectedPeers(),
|
||||
version: pjson.version,
|
||||
network: bitcore.Networks.defaultNetwork.name,
|
||||
height: this.blockchain.getCurrentHeight(),
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user