Browse Source

Close #214

Agree with @pointbiz that the blast of blockstats requests made on startup (to calculate 24hr volume) should be blocked on "slow devices".
master
Dan Janosik 5 years ago
parent
commit
c761631afd
No known key found for this signature in database GPG Key ID: C6F8CE9FFDB2CED2
  1. 6
      app.js

6
app.js

@ -296,6 +296,12 @@ function refreshUtxoSetSummary() {
}
function refreshNetworkVolumes() {
if (config.slowDeviceMode) {
debugLog("Skipping performance-intensive task: fetch last 24 hrs of blockstats to calculate transaction volume. This is skipped due to the flag 'slowDeviceMode' which defaults to 'true' to protect slow nodes. Set this flag to 'false' to enjoy UTXO set summary details.");
return;
}
var cutoff1d = new Date().getTime() - (60 * 60 * 24 * 1000);
var cutoff7d = new Date().getTime() - (60 * 60 * 24 * 7 * 1000);

Loading…
Cancel
Save