ソースを参照

Adjust polling rate.

master
Trey Del Bonis 4年前
コミット
232b4db38b
1個のファイルの変更2行の追加4行の削除
  1. 2
    4
      www/main.js

+ 2
- 4
www/main.js ファイルの表示

@@ -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;

読み込み中…
キャンセル
保存