diff --git a/assets/bin/osx/iguana b/assets/bin/osx/iguana index 3e2f716..ad6a3e5 100755 Binary files a/assets/bin/osx/iguana and b/assets/bin/osx/iguana differ diff --git a/routes/shepherd.js b/routes/shepherd.js index dc80763..5331eb4 100644 --- a/routes/shepherd.js +++ b/routes/shepherd.js @@ -202,14 +202,17 @@ 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' || 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, + '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, + 'getbalance': 'http://' + shepherd.appConfig.host + ':' + shepherd.appConfig.iguanaCorePort + '/api/dex/getbalance?userpass=' + sessionKey + '&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' || coin === 'SYS') { + if (coin === 'BTC' && coin === 'SYS') { delete dexUrls.refresh; + delete dexUrls.getbalance; } - console.log('KMD address ' + address); + //console.log(JSON.stringify(dexUrls)); + console.log(coin+' address ' + address); outObj.basilisk[coin][address] = {}; writeCache();