Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Nake sure we're not shown as syncing when we're on regtest.
Browse files Browse the repository at this point in the history
  • Loading branch information
sproxet committed Oct 25, 2021
1 parent 2149fe6 commit f7b8838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/modules/ApiStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const getters = {
// This is the recommended fee per kb, or 1000 if it is undefined or lower than that.
smartFeePerKb: (state, getters): number => Math.max(1000, getters.apiStatusData.smartFeePerKb || 1000),
estimatedBlockHeight: (state, getters): number => Math.floor((Date.now() / 1000 - getters.lastestBlockTimestamp) / 300) + getters.currentBlockHeight,
isBlockchainSynced: (state, getters): boolean => getters.apiStatusData.synced,
isBlockchainSynced: (state, getters): boolean => getters.network === 'regtest' || getters.apiStatusData.synced,
connections: (state, getters): number => getters.apiStatusData.connections
};

Expand Down

0 comments on commit f7b8838

Please sign in to comment.