anoma / juvix

A language for intent-centric and declarative decentralised applications
https://docs.juvix.org
GNU General Public License v3.0
457 stars 53 forks source link

Launch the Anoma node and client from the elixir REPL #3172

Closed paulcadman closed 1 week ago

paulcadman commented 1 week ago

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