Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use jsonrpc-utils to replace jsonrpc #4170

Merged
merged 31 commits into from Dec 12, 2023

Conversation

chenyukang
Copy link
Collaborator

@chenyukang chenyukang commented Sep 25, 2023

What problem does this PR solve?

We are using paritytech/jsonrpc as our RPC framework, but that project is deprecated, and currently, we have issues like #3900, #3880 need to be resolved.

In this PR, we move to jsonrpc-utils for long term maintaince.

Issue Number:
close #3900
close #3880

Problem Summary:

What is changed and how it works?

There are several features need to verify:

  • HTTP RPC server
  • TCP RPC server
  • Websocket subscription
  • TCP subscription
  • Exiting for Ctrl-C from ckb

Add timeout default with 30s

What's Changed:

Related changes

  • PR to update owner/repo
  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code ci-runs-only: [ quick_checks,linters ]

Side effects

  • Performance regression
  • Breaking backward compatibility

Release note

Title Only: Include only the PR title in the release note.
Note: Add a note under the PR title in the release note.

@chenyukang chenyukang requested a review from a team as a code owner September 25, 2023 02:07
@chenyukang chenyukang requested review from doitian, zhangsoledad, EthanYuan and eval-exec and removed request for a team September 25, 2023 02:07
@chenyukang chenyukang force-pushed the use-jsonrpc-utils branch 2 times, most recently from 31f1266 to ed710c6 Compare September 25, 2023 03:06
rpc/README.md Outdated Show resolved Hide resolved
rpc/README.md Show resolved Hide resolved
@chenyukang chenyukang force-pushed the use-jsonrpc-utils branch 2 times, most recently from d54a778 to 59133f7 Compare September 26, 2023 02:37
@chenyukang chenyukang force-pushed the use-jsonrpc-utils branch 5 times, most recently from a6eafa7 to 9f63dea Compare October 13, 2023 03:15
@chenyukang chenyukang force-pushed the use-jsonrpc-utils branch 2 times, most recently from 7bb89e9 to ca705e3 Compare October 26, 2023 02:32
@zhangsoledad zhangsoledad added this pull request to the merge queue Oct 27, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Oct 27, 2023
@doitian
Copy link
Member

doitian commented Nov 21, 2023

Please rebase

@eval-exec eval-exec added b:rpc Break RPC interface t:enhancement Type: Feature, refactoring. labels Nov 21, 2023
Copy link
Member

@doitian doitian left a comment

Choose a reason for hiding this comment

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

Hold for testing. Waiting for the response from @gpBlockchain

@doitian
Copy link
Member

doitian commented Nov 21, 2023

The codec for TCP is different. Now it is line delimited, before it does not require split JSON requests by newlines.

@chenyukang chenyukang added this pull request to the merge queue Dec 12, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 12, 2023
@chenyukang chenyukang added this pull request to the merge queue Dec 12, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 12, 2023
@chenyukang chenyukang added this pull request to the merge queue Dec 12, 2023
Merged via the queue into nervosnetwork:develop with commit 302a7d7 Dec 12, 2023
31 checks passed
@doitian doitian mentioned this pull request Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
b:rpc Break RPC interface t:enhancement Type: Feature, refactoring.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jsonrpc implementation upgraded to support more features currently does not support client body read timeout
6 participants