Skip to content

Commit

Permalink
Fix bad function position in mempool/index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ultragtx committed Dec 1, 2017
1 parent 9db5f2b commit dcf31d2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/services/mempool/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ util.inherits(MempoolService, BaseService);
MempoolService.dependencies = ['db'];

MempoolService.prototype.getAPIMethods = function() {
var methods = [
['getMempoolTransaction', this, this.getMempoolTransaction, 1],
['getTxidsByAddress', this, this.getTxsByAddress, 2],
];
return methods;
};

MempoolService.prototype.subscribe = function(name, emitter) {
this._subscriptions[name].push(emitter);
Expand All @@ -43,12 +49,6 @@ MempoolService.prototype.unsubscribe = function(name, emitter) {
}
log.info(emitter.remoteAddress, 'unsubscribe:', 'mempool/' + name, 'total:', this._subscriptions[name].length);
};
var methods = [
['getMempoolTransaction', this, this.getMempoolTransaction, 1],
['getTxidsByAddress', this, this.getTxsByAddress, 2],
];
return methods;
};

MempoolService.prototype.getPublishEvents = function() {
return [
Expand Down

0 comments on commit dcf31d2

Please sign in to comment.