Skip to content

Instantly share code, notes, and snippets.

@rauljordan
Created July 30, 2021 15:14
Show Gist options
  • Save rauljordan/ff5c55e99bf986f51aa3c753374c6173 to your computer and use it in GitHub Desktop.
Save rauljordan/ff5c55e99bf986f51aa3c753374c6173 to your computer and use it in GitHub Desktop.

mkdir catalyst-devnet && cd catalyst-devnet

git clone https://github.com/ethereum/go-ethereum.git && cd go-ethereum go build -o ./build/bin/catalyst ./cmd/geth cd ../

mkdir -p data/catalyst ./build/bin/catalyst --datadir "./data/catalyst" init "./eth1_config.json"

block proposal rewards/fees go to the below 'etherbase', change it if you like to spend them

./clients/catalyst/build/bin/catalyst --catalyst --rpc --rpcapi net,eth,consensus --nodiscover
--miner.etherbase 0x1000000000000000000000000000000000000000 --datadir "./$TESTNET_NAME/nodes/catalyst0/chaindata"

git clone -b merge https://github.com/prysmaticlabs/prysm.git && cd prysm bazel build //beacon-chain:beacon-chain bazel build //validator:validator

Run the beacon node

bazel run //beacon-chain --define=ssz=minimal -- \
 --datadir="./data/prysm" \
 --min-sync-peers=0 \
 --http-web3provider=http://127.0.0.1:8545 \
 --bootstrap-node= \
 --chain-config-file="./eth2_config.yaml" \
 --genesis-state="./genesis.ssz" \
 --clear-db

The bootstrap node option is empty to disable any type of networking.

Run the validator

bazel run //validator --define=ssz=minimal -- \
 --wallet-dir="./wallet/prysm" \
 --chain-config-file="./eth2_config.yaml" \
 --clear-db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment