load coins from config

This commit is contained in:
Josh Harvey 2016-04-08 02:28:51 +01:00
parent 564895ea22
commit 1a10c3aba8
3 changed files with 4 additions and 2 deletions

View file

@ -139,6 +139,7 @@ function crypto () {
ticker: tickerPlugin, ticker: tickerPlugin,
transfer: walletPlugin transfer: walletPlugin
} }
config.exchanges.settings.coins = ['BTC', code]
return db.none('update user_config set data=$1 where type=$2', [config, 'exchanges']) return db.none('update user_config set data=$1 where type=$2', [config, 'exchanges'])
}) })
.then(function () { .then(function () {

View file

@ -90,7 +90,8 @@ function poll (req, res) {
fiatTxLimit: settings.fiatTxLimit, fiatTxLimit: settings.fiatTxLimit,
reboot: reboot, reboot: reboot,
rates: rates, rates: rates,
balances: balances balances: balances,
coins: settings.coins
} }
if (response.idVerificationEnabled) { if (response.idVerificationEnabled) {

View file

@ -30,5 +30,5 @@ alter table pending_transactions alter satoshis TYPE bigint;
alter table bills add crypto_code text default 'BTC'; alter table bills add crypto_code text default 'BTC';
alter table bills alter satoshis TYPE bigint; alter table bills alter satoshis TYPE bigint;
- test against old server
- remove debug - remove debug
- test trading