Skip to content

Commit b58c0a7

Browse files
committed
Widen duel recovery window after reload
1 parent 50c9ba0 commit b58c0a7

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

app/js/ui/app.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,12 @@ var App = (function() {
283283

284284
var headBlock = dgp.head_block_number;
285285

286-
// If we have no lastPolledBlock, start from recent history
287-
// (last 200 blocks ~ 10 minutes) to catch duel actions
286+
// If we have no lastPolledBlock, start from recent history.
287+
// Use a wider recovery window so duel challenge/accept/reveal flows
288+
// still restore after reloads or short pauses.
289+
// 1000 blocks is roughly 50 minutes.
288290
if (_lastPolledBlock === 0) {
289-
_lastPolledBlock = Math.max(1, headBlock - 200);
291+
_lastPolledBlock = Math.max(1, headBlock - 1000);
290292
}
291293

292294
if (headBlock <= _lastPolledBlock) {

0 commit comments

Comments
 (0)