Browse Source

fix indicator

pull/244/head
PhilReact 9 months ago
parent
commit
1f5f759f51
  1. 2
      core/src/components/beginner-tour/sync-indicator.js
  2. 2
      plugins/plugins/core/streams/onNewBlock.js

2
core/src/components/beginner-tour/sync-indicator.js

@ -167,6 +167,8 @@ class SyncIndicator extends connect(store)(LitElement) {
state.app.nodeStatus &&
state.app.nodeStatus.syncPercent !== this.syncPercentage
) {
this.hasCoreRunning = true
this.numberOfTries = 0
this.syncPercentage = state.app.nodeStatus.syncPercent;
if (state.app.nodeStatus.syncPercent !== 100) {

2
plugins/plugins/core/streams/onNewBlock.js

@ -1,6 +1,6 @@
import {parentEpml} from '../connect.js'
const MIN_RECONNECT_INTERVAL = 1000; // 1 second
const MAX_RECONNECT_INTERVAL = 300000; // 5 minutes
const MAX_RECONNECT_INTERVAL = 60000; // 1 minute
let socketObject
let activeBlockSocketTimeout

Loading…
Cancel
Save