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

Make Scilla compatible with Zilliqa 2 #1249

Merged
merged 17 commits into from
Apr 11, 2024
Merged

Make Scilla compatible with Zilliqa 2 #1249

merged 17 commits into from
Apr 11, 2024

Conversation

JamesHinshelwood
Copy link

@JamesHinshelwood JamesHinshelwood commented Mar 22, 2024

  • We add another binary which exposes the scilla-server JSON-RPC interface over HTTP.
  • The state IPC calls now make requests over HTTP, rather than via a unix domain socket. Note that this is a breaking change, meaning this version of Scilla will NOT work with Zilliqa 1.
  • All bytes in IPC calls are encoded into base64. Previously, we would include invalid UTF-8 strings in JSON-RPC requests, which resulted in invalid JSON.

* We add another binary which exposes the `scilla-server` JSON-RPC
interface over HTTP.
* The state IPC calls now make requests over HTTP, rather than via
a unix domain socket. Note that this is a breaking change, meaning
this version of Scilla will NOT work with Zilliqa 1.
* All bytes in IPC calls are encoded into base64. Previously, we
would include invalid UTF-8 strings in JSON-RPC requests, which
resulted in invalid JSON.
@JamesHinshelwood JamesHinshelwood enabled auto-merge (squash) April 10, 2024 17:28
@JamesHinshelwood JamesHinshelwood changed the base branch from master to main-zq2 April 10, 2024 17:29
Copy link
Contributor

@rrw-zilliqa rrw-zilliqa left a comment

Choose a reason for hiding this comment

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

Looks good to me :-)

@@ -119,9 +120,9 @@ FROM ubuntu:22.04

RUN apt-get update -y \
&& apt-get install -y build-essential \
libev-dev \
Copy link
Contributor

Choose a reason for hiding this comment

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

oh no! libevent :-p

Copy link
Author

Choose a reason for hiding this comment

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

One of the dependencies needed it - I didn't dig any further than that. If its a concern I can? 🤷‍♂️

let response = Caml.input_line ic in
Core_unix.close socket;
DebugMessage.plog (Printf.sprintf "Response: %s\n" response);
print_endline (Printf.sprintf "Sending: %s\n" msg_buf);
Copy link
Contributor

Choose a reason for hiding this comment

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

Make this conditional? The more we print, the slower stuff gets :-(

@JamesHinshelwood JamesHinshelwood merged commit 6fe9206 into main-zq2 Apr 11, 2024
1 check passed
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