From e257bd97de80822ef447a30d846cd9865dc4ff06 Mon Sep 17 00:00:00 2001 From: Gustavo Cortez Date: Wed, 19 Mar 2014 13:12:51 -0300 Subject: [PATCH] Fixed: not show minersPool and bDb on /api/status information --- app/models/Status.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/models/Status.js b/app/models/Status.js index 39e5247..69b4edf 100644 --- a/app/models/Status.js +++ b/app/models/Status.js @@ -5,10 +5,9 @@ var async = require('async'); var RpcClient = require('bitcore/RpcClient'); var config = require('../../config/config'); var rpc = new RpcClient(config.bitcoind); +var bDb = require('../../lib/BlockDb').default(); -function Status() { - this.bDb = require('../../lib/BlockDb').default(); -} +function Status() {} Status.prototype.getInfo = function(next) { var that = this; @@ -77,7 +76,7 @@ Status.prototype.getBestBlockHash = function(next) { Status.prototype.getLastBlockHash = function(next) { var that = this; - that.bDb.getTip(function(err,tip) { + bDb.getTip(function(err,tip) { that.syncTipHash = tip; async.waterfall( [