From 8307bc4b6407b6ba0a53d920d21257a0c9fd51ea Mon Sep 17 00:00:00 2001 From: Satinder Grewal Date: Thu, 23 Feb 2017 02:10:03 +1300 Subject: [PATCH] allcoins api updated with SYS condition --- routes/shepherd.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routes/shepherd.js b/routes/shepherd.js index 9fd3569..dc80763 100644 --- a/routes/shepherd.js +++ b/routes/shepherd.js @@ -202,11 +202,11 @@ shepherd.get('/allcoins', function(req, res, next) { async.each(outObj.basilisk[coin].addresses, function(address) { var dexUrls = { - 'listunspent': 'http://' + shepherd.appConfig.host + ':' + shepherd.appConfig.iguanaCorePort + '/api/dex/listunspent' + (coin !== 'BTC' ? '2' : '') + '?userpass=' + sessionKey + '&symbol=' + coin + '&address=' + address, - 'listtransactions': 'http://' + shepherd.appConfig.host + ':' + shepherd.appConfig.iguanaCorePort + '/api/dex/listtransactions' + (coin !== 'BTC' ? '2' : '') + '?userpass=' + sessionKey + '&count=100&skip=0&symbol=' + coin + '&address=' + address, + 'listunspent': 'http://' + shepherd.appConfig.host + ':' + shepherd.appConfig.iguanaCorePort + '/api/dex/listunspent' + (coin !== 'BTC' || coin !== 'SYS' ? '2' : '') + '?userpass=' + sessionKey + '&symbol=' + coin + '&address=' + address, + 'listtransactions': 'http://' + shepherd.appConfig.host + ':' + shepherd.appConfig.iguanaCorePort + '/api/dex/listtransactions' + (coin !== 'BTC' || coin !== 'SYS' ? '2' : '') + '?userpass=' + sessionKey + '&count=100&skip=0&symbol=' + coin + '&address=' + address, 'refresh': 'http://' + shepherd.appConfig.host + ':' + shepherd.appConfig.iguanaCorePort + '/api/basilisk/refresh?userpass=' + sessionKey + '&timeout=600000&symbol=' + coin + '&address=' + address }; - if (coin === 'BTC') { + if (coin === 'BTC' || coin === 'SYS') { delete dexUrls.refresh; } console.log('KMD address ' + address);