Browse Source

Adjust polling rate.

master
Trey Del Bonis 3 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

@@ -415,10 +415,8 @@ function populateRecentBlocks(blocks) {
}

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;
} else {
return 10000;

Loading…
Cancel
Save