Skip to content

Commit

Permalink
fix: The first sync only stuck full ckb node start.
Browse files Browse the repository at this point in the history
  • Loading branch information
yanguoyu committed Mar 15, 2024
1 parent 2e7fa47 commit 2706bdb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/neuron-wallet/src/services/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ class NodeService {
await stopMonitor('ckb')
const isDefaultCKBNeedStart = await this.isDefaultCKBNeedRestart()
if (isDefaultCKBNeedStart) {
if (SettingsService.getInstance().isFirstSync) {
const currentNetwork = NetworksService.getInstance().getCurrent()
if (SettingsService.getInstance().isFirstSync && currentNetwork.type === NetworkType.Default) {
logger.info("CKB:\tThis is the first sync, please wait for the user's confirmation")
return
}
Expand Down

0 comments on commit 2706bdb

Please sign in to comment.