Skip to content

Commit

Permalink
fix: Add annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
yanguoyu committed Nov 21, 2023
1 parent 58aec60 commit 26fa8f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/neuron-ui/src/utils/getSyncStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ export const getSyncStatus = ({
networkID: string
}) => {
if (
// !timestamp10MinAgo means start sync for the first time
(!timestamp10MinAgo && bestKnownBlockNumber >= 0) ||
// prevUrl for change the network remote(change network or eidt the network)
// prevNetworkID for change the network, sometime change network the remote is same. light client mainnet -> testnet
(((prevUrl && url !== prevUrl) || (prevNetworkID && prevNetworkID !== networkID)) && bestKnownBlockNumber >= 0)
) {
timestamp10MinAgo = currentTimestamp
Expand Down

0 comments on commit 26fa8f2

Please sign in to comment.