Bitcoind is already logging the status.

This commit is contained in:
Braydon Fuller 2015-09-01 13:52:24 -04:00
parent f2fb4a1379
commit efc770f7eb
2 changed files with 0 additions and 4 deletions

View File

@ -100,8 +100,6 @@ DB.prototype.start = function(callback) {
// Notify that there is a new tip // Notify that there is a new tip
self.node.services.bitcoind.on('tip', function(height) { self.node.services.bitcoind.on('tip', function(height) {
if(!self.node.stopping) { if(!self.node.stopping) {
var percentage = self.node.services.bitcoind.syncPercentage();
log.info('Bitcoin Core Daemon New Height:', height, 'Percentage:', percentage);
self.sync(); self.sync();
} }
}); });

View File

@ -237,7 +237,6 @@ describe('DB Service', function() {
var db = new TestDB(baseConfig); var db = new TestDB(baseConfig);
db.node.services = {}; db.node.services = {};
db.node.services.bitcoind = new EventEmitter(); db.node.services.bitcoind = new EventEmitter();
db.node.services.bitcoind.syncPercentage = sinon.spy();
db.node.services.bitcoind.genesisBuffer = genesisBuffer; db.node.services.bitcoind.genesisBuffer = genesisBuffer;
db.getMetadata = sinon.stub().callsArg(0); db.getMetadata = sinon.stub().callsArg(0);
db.connectBlock = sinon.stub().callsArg(1); db.connectBlock = sinon.stub().callsArg(1);
@ -245,7 +244,6 @@ describe('DB Service', function() {
db.sync = sinon.stub(); db.sync = sinon.stub();
db.start(function() { db.start(function() {
db.sync = function() { db.sync = function() {
db.node.services.bitcoind.syncPercentage.callCount.should.equal(1);
done(); done();
}; };
db.node.services.bitcoind.emit('tip', 10); db.node.services.bitcoind.emit('tip', 10);