Merge pull request #1091 from chaotixkilla/fix-XMR-wallet-reading

Fix XMR wallet file check
This commit is contained in:
Rafael Taranto 2022-02-08 09:23:59 +00:00 committed by GitHub
commit e1751c8576
2 changed files with 3 additions and 4 deletions

View file

@ -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'
}
}

View file

@ -40,8 +40,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()