Skip to content

Commit

Permalink
[DDW-433] Fix isNodeSyncing state logic
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolaglumac committed Oct 15, 2018
1 parent 1b13091 commit d30f9b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/renderer/app/stores/NetworkStatusStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,10 @@ export default class NetworkStatusStore extends Store {

// Node is syncing in case we are receiving blocks and they are not stalling
runInAction('update isNodeSyncing', () => {
this.isNodeSyncing = isBlockchainHeightIncreasing || !isBlockchainHeightStalling;
this.isNodeSyncing = (
hasStartedReceivingBlocks &&
(isBlockchainHeightIncreasing || !isBlockchainHeightStalling)
);
});

runInAction('update isNodeInSync', () => {
Expand Down

0 comments on commit d30f9b0

Please sign in to comment.