From dcf31d28c1e6ac5071fd543890c577653563f0f2 Mon Sep 17 00:00:00 2001 From: ultragtx Date: Fri, 1 Dec 2017 17:18:30 +0800 Subject: [PATCH] Fix bad function position in mempool/index.js --- lib/services/mempool/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/services/mempool/index.js b/lib/services/mempool/index.js index a99601854..ad2f0d16f 100644 --- a/lib/services/mempool/index.js +++ b/lib/services/mempool/index.js @@ -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); @@ -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 [