Browse Source

Add --no-rates to disable fetching of currency exchange rates

fix-133-memory-crash
Nadav Ivgi 6 years ago
parent
commit
bfcbcd07a4
  1. 2
      app/utils.js
  2. 1
      bin/cli.js

2
app/utils.js

@ -276,6 +276,8 @@ function getBlockTotalFeesFromCoinbaseTxAndBlockHeight(coinbaseTx, blockHeight)
}
function refreshExchangeRates() {
if (process.env.BTCEXP_NO_RATES) return;
if (coins[config.coin].exchangeRateData) {
request(coins[config.coin].exchangeRateData.jsonUrl, function(error, response, body) {
if (!error && response && response.statusCode && response.statusCode == 200) {

1
bin/cli.js

@ -18,6 +18,7 @@ const args = require('meow')(`
--cookie-secret <secret> secret key for signed cookie hmac generation [default: hmac derive from bitcoind pass]
--demo enable demoSite mode [default: disabled]
--no-rates disable fetching of currency exchange rates [default: enabled]
--ipstack-key <key> api access key for ipstack (for geoip) [default: disabled]
--ganalytics-tracking <tid> tracking id for google analytics [default: disabled]

Loading…
Cancel
Save