Browse Source

Adjust polling rate.

master
Trey Del Bonis 4 years ago
parent
commit
232b4db38b
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      www/main.js

+ 2
- 4
www/main.js View File

} }


function getPollDelayAtHeight(height) { function getPollDelayAtHeight(height) {
let blocksUntilHalving = HALVING_PERIOD - (height % HALVING_PERIOD);
if (blocksUntilHalving <= 1) {
return 1000;
} else if (blocksUntilHalving == 2) {
let blocksUntilHalving = calcNextHalvingHeight() - height;
if (blocksUntilHalving <= 2) {
return 2500; return 2500;
} else { } else {
return 10000; return 10000;

Loading…
Cancel
Save