Skip to content

fix: Use batch rpc to request result. Optimization sql search.#2530

Merged
yanguoyu merged 4 commits into
nervosnetwork:developfrom
yanguoyu:fix-batch-rpc
Jan 5, 2023
Merged

fix: Use batch rpc to request result. Optimization sql search.#2530
yanguoyu merged 4 commits into
nervosnetwork:developfrom
yanguoyu:fix-batch-rpc

Conversation

@yanguoyu
Copy link
Copy Markdown
Contributor

  1. For the nerovs dao page, there are many rpc requests, use batch request.
  2. Because some users have many relations with others cells, left join twice to search inputs and outputs.
  3. Find unlock transactions with the status that equal Dead or Pending.

Comment thread packages/neuron-ui/src/components/NervosDAO/hooks.ts
Comment thread packages/neuron-ui/src/components/NervosDAO/hooks.ts Outdated
Comment thread packages/neuron-wallet/src/services/tx/transaction-service.ts Outdated
Comment thread packages/neuron-wallet/src/services/cells.ts Outdated
Comment thread packages/neuron-wallet/src/services/tx/transaction-service.ts Outdated
Comment thread packages/neuron-wallet/src/services/tx/transaction-service.ts Outdated
Copy link
Copy Markdown
Contributor

@Cedar67 Cedar67 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Due to the changes to the ckb architecture, this PR needs to be validated after being merged into the develop branch.

1. For the nerovs dao page, there are many rpc requests, use batch request.
2. Because some users have many relations with others cells, left join twice to search inputs and outputs.
3. Find unlock transactions with the status that equal Dead or Pending.
@yanguoyu
Copy link
Copy Markdown
Contributor Author

Due to the changes to the ckb architecture, this PR needs to be validated after being merged into the develop branch.

I have rebased develop.

Comment thread packages/neuron-ui/src/components/NervosDAO/hooks.ts Outdated
Comment thread packages/neuron-ui/src/components/NervosDAO/hooks.ts Outdated
@yanguoyu yanguoyu merged commit 1f2d884 into nervosnetwork:develop Jan 5, 2023
@yanguoyu yanguoyu deleted the fix-batch-rpc branch January 5, 2023 03:00
@Cedar67
Copy link
Copy Markdown
Contributor

Cedar67 commented Jan 9, 2023

Verified on develop branch.

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.

4 participants