improve config loading; remove debug

This commit is contained in:
Josh Harvey 2017-04-25 02:25:32 +03:00
parent 5f0b70ca42
commit 614c64646a
15 changed files with 198 additions and 193 deletions

View file

@ -119,6 +119,7 @@ function plugins (settings, deviceId) {
function fetchCurrentConfigVersion () {
const sql = `select id from user_config
where type=$1
and valid
order by id desc
limit 1`
@ -278,9 +279,7 @@ function plugins (settings, deviceId) {
const market = [fiatCode, cryptoCode].join('')
console.log('DEBUG333')
if (!exchange.active(settings, cryptoCode)) return
console.log('DEBUG334')
logger.debug('[%s] Pushing trade: %d', market, cryptoAtoms)
if (!tradesQueues[market]) tradesQueues[market] = []
@ -485,7 +484,6 @@ function plugins (settings, deviceId) {
function sweepHdRow (row) {
const cryptoCode = row.crypto_code
console.log('DEBUG200')
return wallet.sweep(settings, cryptoCode, row.hd_index)
.then(txHash => {
if (txHash) {