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

RPC sidecar changes #231

Merged
merged 30 commits into from
Feb 23, 2024
Merged

Conversation

jacek-casper
Copy link

@jacek-casper jacek-casper commented Jan 11, 2024

This PR includes:

  • addition of the RPC sidecar as a binary (separate from the event stream binary)
  • a temporary hard copy of casper types, because it's not been published

The diff is very large because of the casper-types copies, which you can ignore, the relevant changes are in the rpc-sidecar and sidecar directories.

PR for required node changes: casper-network/casper-node#4491

Jakub Zajkowski and others added 7 commits January 5, 2024 13:42
…eparate binaries and `cargo build` will produce two executable packages.

* Updating schemars version because the old one having bugs (if there is a name collision for components schema only one will be saved)
* Copying casper_types to this project. The reason is that casper_types in release <= 4.0.1 depends on old schemars
* Copying casper_types for 2.0 release to this project. The reason is that rpc sidecar has to use the new types definitions, but for now they are not released (and it's not clear if they will be released prior to node 2.0 release).
* Changing RpcError implementation to fix tests. Some alignments of codestyle to make clippy happy.
* Moving casper-types dependencies to workspace level
@jacek-casper jacek-casper marked this pull request as ready for review January 18, 2024 15:23
Rafał Chabowski and others added 9 commits January 25, 2024 11:15
…ntial_backoff will take a new parameter called max_attempts. I tcan be either "infinite" or a positive, non-zero number.
Changing RPC sidecar config so that the rpc_server.node_client.expone…
…fig from DDLConfiguration because it's no longer needed (new version of sea_query handles the situation of defining big_integer and autoincrement)
Storing ApiVersion in event_log table. Removing is_big_integer_id con…
zajko and others added 2 commits February 9, 2024 10:22
Revert "Storing ApiVersion in event_log table. Removing is_big_integer_id con…"
* Update for node changes

* Fix lints

* Cleanup

* Cover all values in tag roundtrip tests
Copy link

@rafal-ch rafal-ch left a comment

Choose a reason for hiding this comment

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

Only partial review for now

casper_types_ver_2_0/src/binary_port/state_request.rs Outdated Show resolved Hide resolved
Jakub Zajkowski and others added 5 commits February 14, 2024 12:40
…arately from sse events server. Also the database initialization happens separetely. Is sse events server is defined a storage definition is required. If rest api server is defined a storage definition is required.
…rom_sse_server

Moving API servers out of the SSE server
Copy link

@rafal-ch rafal-ch left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@zajko zajko merged commit 7511324 into casper-network:feat-2.0 Feb 23, 2024
casperlabs-bors-ng bot added a commit to casper-network/casper-node that referenced this pull request Feb 29, 2024
4491: RPC sidecar changes r=jacek-casper a=jacek-casper

This PR includes:
- addition of a TCP listener in the node that will be handling requests from the RPC sidecar
- NCTL changes necessary to pull, build and run the sidecar alongside the nodes
- a specification of the binary protocol
- some changes to casper-types to expose types needed for the sidecar to work
- removal of the existing RPC server

The purpose of this PR is to get a high-level review, there are still minor changes being done and unit tests being added.

PR for the addition of the sidecar: casper-network/casper-sidecar#231

Co-authored-by: Rafał Chabowski <rafal@casperlabs.io>
Co-authored-by: Jacek Malec <145967538+jacek-casper@users.noreply.github.com>
casperlabs-bors-ng bot added a commit to casper-network/casper-node that referenced this pull request Feb 29, 2024
4491: RPC sidecar changes r=jacek-casper a=jacek-casper

This PR includes:
- addition of a TCP listener in the node that will be handling requests from the RPC sidecar
- NCTL changes necessary to pull, build and run the sidecar alongside the nodes
- a specification of the binary protocol
- some changes to casper-types to expose types needed for the sidecar to work
- removal of the existing RPC server

The purpose of this PR is to get a high-level review, there are still minor changes being done and unit tests being added.

PR for the addition of the sidecar: casper-network/casper-sidecar#231

Co-authored-by: Rafał Chabowski <rafal@casperlabs.io>
Co-authored-by: Jacek Malec <145967538+jacek-casper@users.noreply.github.com>
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