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

Refactor Mina RPCs (compatible) #15970

Merged
merged 7 commits into from
Sep 1, 2024
Merged

Refactor Mina RPCs (compatible) #15970

merged 7 commits into from
Sep 1, 2024

Conversation

nholland94
Copy link
Member

This PR refactors the Mina RPC implementations such that they are now in a single unified location and have more shared/less duplicated logic.

The first commit is the largest and most annoying to review, but it mostly moves type definitions around and combines RPC implementations that were split across Mina_networking and Mina_lib. It's intended to have limited behavior changes (the changes that were made are just in standardizing how RPCs are handled). Subsequent commits make more meaningful changes to RPCs, including refactoring the node status system out of the RPC layer (since that was moved over to libp2p_helper some time ago). Further changes will be included in a PR building off of this into develop.

@nholland94 nholland94 requested a review from a team as a code owner August 23, 2024 17:33
@nholland94
Copy link
Member Author

!ci-build-me

@nholland94
Copy link
Member Author

!ci-build-me

@nholland94
Copy link
Member Author

!ci-build-me

Comment on lines +417 to +429
(*
(* setup a proxy response pipe so we can inspect the messages from our test *)
let proxy_answer_reader, proxy_answer_writer =
Linear_pipe.create ()
in
don't_wait_for (
Linear_pipe.Reader.iter proxy_answer_reader ~f:(fun answer ->
if Option.is_none response && is_genesis_state_hash
( match response with
| None when genesis_state_hash ->
)
Linear_pipe.write proxy_response_writer response)
*)
Copy link
Member

Choose a reason for hiding this comment

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

Delete?

@nholland94
Copy link
Member Author

!ci-build-me

@mrmr1993
Copy link
Member

mrmr1993 commented Sep 1, 2024

!ci-build-me

@mrmr1993 mrmr1993 merged commit 7273e9b into compatible Sep 1, 2024
44 checks passed
@mrmr1993 mrmr1993 deleted the refactor/mina-rpcs branch September 1, 2024 23:54
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.

2 participants