Updated fee service and cleaned console log from header service
This commit is contained in:
parent
594452e7ba
commit
f7da83693e
@ -10,7 +10,7 @@ var FeeService = function(options) {
|
|||||||
pass: 'local321',
|
pass: 'local321',
|
||||||
host: 'localhost',
|
host: 'localhost',
|
||||||
protocol: 'http',
|
protocol: 'http',
|
||||||
port: this._getDefaultPort()
|
port: 8333
|
||||||
};
|
};
|
||||||
BaseService.call(this, options);
|
BaseService.call(this, options);
|
||||||
|
|
||||||
@ -34,8 +34,7 @@ FeeService.prototype.stop = function(callback) {
|
|||||||
|
|
||||||
FeeService.prototype.getAPIMethods = function() {
|
FeeService.prototype.getAPIMethods = function() {
|
||||||
return [
|
return [
|
||||||
['estimateFee', this, this.estimateFee, 1],
|
['estimateFee', this, this.estimateFee, 1]
|
||||||
['syncPercentage', this, this.syncPercentage, 0]
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -34,8 +34,6 @@ HeaderService.STARTING_CHAINWORK = '00000000000000000000000000000000000000000000
|
|||||||
|
|
||||||
// --- public prototype functions
|
// --- public prototype functions
|
||||||
HeaderService.prototype.subscribe = function(name, emitter) {
|
HeaderService.prototype.subscribe = function(name, emitter) {
|
||||||
|
|
||||||
console.log(this.subscriptions, name);
|
|
||||||
this.subscriptions[name].push(emitter);
|
this.subscriptions[name].push(emitter);
|
||||||
log.info(emitter.remoteAddress, 'subscribe:', 'header/' + name, 'total:', this.subscriptions[name].length);
|
log.info(emitter.remoteAddress, 'subscribe:', 'header/' + name, 'total:', this.subscriptions[name].length);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user