Run a Morph Node

This guide describes the approach to running a Morph validator node. If you are unfamiliar with the validator duties, please refer to our optimistic zkEVM design.

Create the folder ~/.morph as our home directory for this example.

Build executable binary

Clone Morph

mkdir -p ~/.morph
cd ~/.morph
git clone <https://github.com/morph-l2/morph.git>

Currently, we use tag v0.1.0-beta as our beta version geth.

cd morph
git checkout v0.1.0-beta

Build Geth

Notice: You need C compiler to build geth

make nccc_geth

Build Node

cd ~/.morph/morph/node
make build

Sync from the genesis block

Config Preparation

  1. Download the config files and make data dir
cd ~/.morph
wget <https://raw.githubusercontent.com/morph-l2/config-template/main/holesky/data.zip>
unzip data.zip

  1. Create a shared secret with node
cd ~/.morph
openssl rand -hex 32 > jwt-secret.txt

Script to start the process