Anoma.Node.Examples.ENode (Anoma v0.32.0)
Summary
Functions
I kill all the nodes in the vm.
I start a new node given a node id and returns its process id.
I stop a node and assert that's is gone.
Types
Functions
Link to this function
kill_all_nodes()
@spec kill_all_nodes() :: :ok
I kill all the nodes in the vm.
Link to this function
start_node(opts \\ [])
I start a new node given a node id and returns its process id.
When a node is started, I put its ENode struct in an ETS table for later retrieval.
When a node is already spawned, I lookup the ENode struct in the ETS table. Some meta data (in particular, the GRPC port) is only available when the node is started so I fetch that data from the ETS table.
Link to this function
stop_node(node)
@spec stop_node(t()) :: :ok
I stop a node and assert that's is gone.