Fixed: not show minersPool and bDb on /api/status information
This commit is contained in:
parent
f7ee313255
commit
e257bd97de
@ -5,10 +5,9 @@ var async = require('async');
|
|||||||
var RpcClient = require('bitcore/RpcClient');
|
var RpcClient = require('bitcore/RpcClient');
|
||||||
var config = require('../../config/config');
|
var config = require('../../config/config');
|
||||||
var rpc = new RpcClient(config.bitcoind);
|
var rpc = new RpcClient(config.bitcoind);
|
||||||
|
var bDb = require('../../lib/BlockDb').default();
|
||||||
|
|
||||||
function Status() {
|
function Status() {}
|
||||||
this.bDb = require('../../lib/BlockDb').default();
|
|
||||||
}
|
|
||||||
|
|
||||||
Status.prototype.getInfo = function(next) {
|
Status.prototype.getInfo = function(next) {
|
||||||
var that = this;
|
var that = this;
|
||||||
@ -77,7 +76,7 @@ Status.prototype.getBestBlockHash = function(next) {
|
|||||||
|
|
||||||
Status.prototype.getLastBlockHash = function(next) {
|
Status.prototype.getLastBlockHash = function(next) {
|
||||||
var that = this;
|
var that = this;
|
||||||
that.bDb.getTip(function(err,tip) {
|
bDb.getTip(function(err,tip) {
|
||||||
that.syncTipHash = tip;
|
that.syncTipHash = tip;
|
||||||
async.waterfall(
|
async.waterfall(
|
||||||
[
|
[
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user