Skip to content

Commit

Permalink
feat: ignore unavailable swap clients on create (#1815) (#2004)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsercano authored Dec 2, 2020
1 parent 7ecdd7e commit 360cca7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/service/InitService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class InitService extends EventEmitter {
this.newWalletValidation(password);

try {
await this.prepareCall();
await this.prepareCall(true);
const seedMnemonic = await generate();

// we use the deciphered seed (without the salt and extra fields that make up the enciphered seed)
Expand Down
1 change: 0 additions & 1 deletion lib/swaps/SwapClientManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ class SwapClientManager extends EventEmitter {
initializedLndWallets.push(swapClient.currency);
}).catch((err) => {
swapClient.logger.error('could not initialize lnd wallet', err.message);
throw errors.SWAP_CLIENT_WALLET_NOT_CREATED(`could not initialize lnd-${swapClient.currency}: ${err.message}`);
});
initWalletPromises.push(initWalletPromise);
}
Expand Down

0 comments on commit 360cca7

Please sign in to comment.