Skip to content

Commit dcf31d2

Browse files
committed
Fix bad function position in mempool/index.js
1 parent 9db5f2b commit dcf31d2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/services/mempool/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ util.inherits(MempoolService, BaseService);
3030
MempoolService.dependencies = ['db'];
3131

3232
MempoolService.prototype.getAPIMethods = function() {
33+
var methods = [
34+
['getMempoolTransaction', this, this.getMempoolTransaction, 1],
35+
['getTxidsByAddress', this, this.getTxsByAddress, 2],
36+
];
37+
return methods;
38+
};
3339

3440
MempoolService.prototype.subscribe = function(name, emitter) {
3541
this._subscriptions[name].push(emitter);
@@ -43,12 +49,6 @@ MempoolService.prototype.unsubscribe = function(name, emitter) {
4349
}
4450
log.info(emitter.remoteAddress, 'unsubscribe:', 'mempool/' + name, 'total:', this._subscriptions[name].length);
4551
};
46-
var methods = [
47-
['getMempoolTransaction', this, this.getMempoolTransaction, 1],
48-
['getTxidsByAddress', this, this.getTxsByAddress, 2],
49-
];
50-
return methods;
51-
};
5252

5353
MempoolService.prototype.getPublishEvents = function() {
5454
return [

0 commit comments

Comments
 (0)