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) {
|
Pool.prototype.addWallet = function addWallet(wallet) {
|
||||||
var self = this;
|
var self = this;
|
||||||
var e;
|
|
||||||
|
|
||||||
if (this.loading)
|
if (this.loading)
|
||||||
return this.once('load', this.addWallet.bind(this, wallet));
|
return this.once('load', this.addWallet.bind(this, wallet));
|
||||||
@ -1199,8 +1198,6 @@ Pool.prototype.addWallet = function addWallet(wallet) {
|
|||||||
this.watchWallet(wallet);
|
this.watchWallet(wallet);
|
||||||
this.wallets.push(wallet);
|
this.wallets.push(wallet);
|
||||||
|
|
||||||
e = new EventEmitter();
|
|
||||||
|
|
||||||
function search() {
|
function search() {
|
||||||
// Relay pending TXs
|
// Relay pending TXs
|
||||||
// NOTE: It is important to do it after search, because search could
|
// 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);
|
wallet.once('load', search);
|
||||||
else
|
else
|
||||||
search();
|
search();
|
||||||
|
|
||||||
return e;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Pool.prototype.removeWallet = function removeWallet(wallet) {
|
Pool.prototype.removeWallet = function removeWallet(wallet) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user