Skip to content

fix: Fix some bugs.#2675

Merged
Keith-CY merged 2 commits into
nervosnetwork:support-light-clientfrom
yanguoyu:fix-light-client
May 22, 2023
Merged

fix: Fix some bugs.#2675
Keith-CY merged 2 commits into
nervosnetwork:support-light-clientfrom
yanguoyu:fix-light-client

Conversation

@yanguoyu
Copy link
Copy Markdown
Contributor

  1. When the light client just started, some dep cells should wait for a moment to get. So if the current light client can not get the dep cells, wait for 10 seconds and try it again.
  2. If process. stdout is pipe, it should add event listener, otherwise when call process. kill, we need to destroy the stdout
  3. If we clean data without cleaning the indexer data, we should not restart the ckb node.
  4. When we clean data, restart the sync task to avoid the check node skipping.

1. When the light client just started, some dep cells should wait for a moment to get. So if the current light client can not get the dep cells, wait for 10 seconds and try it again.
2. If process. stdout is `pipe`, it should add event listener, otherwise when call process. kill, we need to destroy the stdout
3. If we clean data without cleaning the indexer data, we should not restart the ckb node.
4. When we clean data, restart the sync task to avoid the check node skipping.
Comment thread packages/neuron-wallet/src/block-sync-renderer/sync/light-connector.ts Outdated
@Keith-CY Keith-CY merged commit fed0503 into nervosnetwork:support-light-client May 22, 2023
@yanguoyu yanguoyu deleted the fix-light-client branch May 23, 2023 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants