From c20ba429b12e53a03311018d53172c2087e614d3 Mon Sep 17 00:00:00 2001 From: softsimon Date: Tue, 23 Jun 2020 14:49:06 +0700 Subject: [PATCH] Increased frontend auto reload timeout. Increased time limit on new transaction processing. --- backend/src/api/mempool.ts | 2 +- frontend/src/app/services/websocket.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/api/mempool.ts b/backend/src/api/mempool.ts index 143db95f7..a425af982 100644 --- a/backend/src/api/mempool.ts +++ b/backend/src/api/mempool.ts @@ -119,7 +119,7 @@ class Mempool { } } - if ((new Date().getTime()) - start > config.MEMPOOL_REFRESH_RATE_MS) { + if ((new Date().getTime()) - start > config.MEMPOOL_REFRESH_RATE_MS * 10) { break; } } diff --git a/frontend/src/app/services/websocket.service.ts b/frontend/src/app/services/websocket.service.ts index b414added..8ff25f314 100644 --- a/frontend/src/app/services/websocket.service.ts +++ b/frontend/src/app/services/websocket.service.ts @@ -103,7 +103,7 @@ export class WebsocketService { if (this.latestGitCommit !== response['git-commit']) { setTimeout(() => { window.location.reload(); - }, Math.floor(Math.random() * 60000) + 1000); + }, Math.floor(Math.random() * 60000) + 60000); } } }