Skip to content
This repository was archived by the owner on Jun 21, 2025. It is now read-only.

Commit 39e4590

Browse files
committed
Increased connection warning timeout
1 parent d0ec504 commit 39e4590

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

app/components/Layout/Footer.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ class Footer extends React.Component {
277277
// user is not looking at the app, no reconnection effort necessary
278278
if (!ifvisible.now("active")) return;
279279

280+
const outOfSyncTrigger = 10; // was 3
280281
let connected = !(this.props.rpc_connection_status === "closed");
281282

282283
if (!connected) {
@@ -300,7 +301,7 @@ class Footer extends React.Component {
300301
}, forceReconnectAfterSeconds * 1000);
301302

302303
// Still out of sync?
303-
if (this.getBlockTimeDelta() > 3) {
304+
if (this.getBlockTimeDelta() > outOfSyncTrigger) {
304305
console.log(
305306
"Your node is out of sync since " +
306307
this.getBlockTimeDelta() +
@@ -311,7 +312,7 @@ class Footer extends React.Component {
311312
setTimeout(() => {
312313
// Only ask the user once, and only continue if still out of sync
313314
if (
314-
this.getBlockTimeDelta() > 3 &&
315+
this.getBlockTimeDelta() > outOfSyncTrigger &&
315316
this.state.hasOutOfSyncModalBeenShownOnce === false
316317
) {
317318
this.setState({

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "kreel-ui",
3-
"version": "0.0.4",
4-
"description": "Web wallet interface for the kreel financial blockchain.",
3+
"version": "0.0.5",
4+
"description": "Web wallet interface for Kazahstan Reciclables Exchange EcoLom.",
55
"homepage": "https://github.com/maxirmx/kreel-ui",
66
"author": "maxirmx <maxirmx@gmail.com>",
77
"contributors": [

0 commit comments

Comments
 (0)