From 7a4aba4869538cce115e2e51c4ad792fcb26e924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Salgado?= Date: Thu, 3 Feb 2022 22:08:44 +0000 Subject: [PATCH] fix: wallet file checking --- lib/plugins/common/ccxt.js | 4 ++-- lib/plugins/wallet/monerod/monerod.js | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/plugins/common/ccxt.js b/lib/plugins/common/ccxt.js index c3dabced..9cb0824a 100644 --- a/lib/plugins/common/ccxt.js +++ b/lib/plugins/common/ccxt.js @@ -8,7 +8,7 @@ const binanceus = require('../exchange/binanceus') const cex = require('../exchange/cex') const ftx = require('../exchange/ftx') const bitpay = require('../ticker/bitpay') -const { BTC, BCH, DASH, ETH, LTC, ZEC, USDT, XMR } = COINS +const { BTC, BCH, DASH, ETH, LTC, ZEC, USDT } = COINS const ALL = { cex: cex, @@ -19,7 +19,7 @@ const ALL = { itbit: itbit, bitpay: bitpay, coinbase: { - CRYPTO: [BTC, ETH, LTC, DASH, ZEC, BCH, USDT, XMR], + CRYPTO: [BTC, ETH, LTC, DASH, ZEC, BCH, USDT], FIAT: 'ALL_CURRENCIES' } } diff --git a/lib/plugins/wallet/monerod/monerod.js b/lib/plugins/wallet/monerod/monerod.js index 3b85088c..fb11ac9b 100644 --- a/lib/plugins/wallet/monerod/monerod.js +++ b/lib/plugins/wallet/monerod/monerod.js @@ -42,8 +42,7 @@ function handleError (error) { { if ( fs.existsSync(path.resolve(walletDir, 'Wallet')) && - fs.existsSync(path.resolve(walletDir, 'Wallet.keys')) && - fs.existsSync(path.resolve(walletDir, 'Wallet.address.txt')) + fs.existsSync(path.resolve(walletDir, 'Wallet.keys')) ) { logger.debug('Found wallet! Opening wallet...') return openWallet()