minor
This commit is contained in:
parent
06d6d74081
commit
7a66a2717e
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user