-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Launch the Anoma node and client from the elixir REPL (#3172)
This PR changes how we launch the Anoma Client to avoid a bug with linking cryptographic APIs. libsodium cryptographic APIs like sign-detached cannot currently be called from within the Anoma node or client binaries. Until this is solved we must start both the node and client from the elixir REPL. Previously we were starting the node using the REPL and the client using the binary. This commit changes the `start.exs` script we were using to start the node to now start both a node and a client. After this change we can enable Anoma compilation test `test077`. The output of `juvix dev anoma node --anoma-dir ANOMA_DIR` is now: ``` Anoma node and client successfully started Listening on port 51748 ```
1 parent
2b2c8ab
commit 29041dc
Showing
4 changed files
with
35 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
IO.puts(Anoma.Node.Examples.ENode.start_node().grpc_port) | ||
IO.puts("#{inspect(Anoma.Client.Examples.EClient.create_example_client.client.grpc_port)}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters