diff --git a/lib/bcoin/pool.js b/lib/bcoin/pool.js index 4bd6e032..a964a6af 100644 --- a/lib/bcoin/pool.js +++ b/lib/bcoin/pool.js @@ -1188,7 +1188,6 @@ Pool.prototype.isWatched = function(tx, bloom) { Pool.prototype.addWallet = function addWallet(wallet) { var self = this; - var e; if (this.loading) return this.once('load', this.addWallet.bind(this, wallet)); @@ -1199,8 +1198,6 @@ Pool.prototype.addWallet = function addWallet(wallet) { this.watchWallet(wallet); this.wallets.push(wallet); - e = new EventEmitter(); - function search() { // Relay pending TXs // NOTE: It is important to do it after search, because search could @@ -1227,8 +1224,6 @@ Pool.prototype.addWallet = function addWallet(wallet) { wallet.once('load', search); else search(); - - return e; }; Pool.prototype.removeWallet = function removeWallet(wallet) {