Skip to main content

Mazzaroth Nodes

A Mazzaroth Node is the application that performs one or more of the many roles required by the Mazzaroth ecosystem.

To run one or more Mazzaroth Nodes you must have access to the Mazzaroth binary, which is bundled with the GCP solution.

There are currently 3 types of nodes available to be deployed:

  • Standalone nodes are useful for development, but do not connect to the distributed network of consensus nodes.
  • Gateway nodes provide users with access to the blockchain through RPCs but do not participate in consensus.
  • Consensus nodes participate in a channel's consensus to facilitate ordering and execution of transactions.

The command to start a node is mazzaroth node start followed by the type. Command line flags may also be provided to override default config values or you can use a config yaml file. For example, to start a standalone node with a config file you can use the following command:

mazzaroth node start standalone --cfg-path my-config.yaml

For the GCP standalone solution a systemd service is already setup and all that needs to be updated is the /opt/mazzaroth-config.yaml followed by a service restart: sudo systemctl restart mazzaroth.service

Standalone

A standalone node can be used as a development environment for Mazzaroth. It provides a way to deploy and interact with a smart contract without connecting to the global network of nodes.

Gateway

A gateway node is connected to the network but does not participate in consensus. The main role of a gateway node is to allow clients to send requests to the channel including submitting transactions and requesting information from the ledger or state.

Consensus

A consensus node is connected to the network and participates in the consensus that accepts transactions into the channel. A consensus node does not allow requests from clients, but does receive forwarded transactions from other gateway nodes in the network.