Merge pull request #23 from cmgustavo/fix/status-info

Fixed: not show minersPool and bDb on /api/status information
This commit is contained in:
Matias Alejo Garcia 2014-03-19 15:46:37 -03:00
commit bc15a98aed
1 changed files with 3 additions and 4 deletions

View File

@ -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(
[