Skip to content

Instantly share code, notes, and snippets.

@jnmclarty
Created July 29, 2023 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnmclarty/efdcf66f2c4b2e1f58c65d149d5db8af to your computer and use it in GitHub Desktop.
Save jnmclarty/efdcf66f2c4b2e1f58c65d149d5db8af to your computer and use it in GitHub Desktop.
Boot up Lighthouse 4.30 from Binary & Reth from Source
# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
echo source $HOME/.cargo/env >> ~/.bashrc
# Install Reth Dependencies
sudo apt-get install libclang-dev pkg-config build-essential
git clone https://github.com/paradigmxyz/reth
cd reth
cargo install --locked --path bin/reth --bin reth
cd ..
# Install Lighthouse
curl -LO https://github.com/sigp/lighthouse/releases/download/v4.3.0/lighthouse-v4.3.0-x86_64-unknown-linux-gnu.tar.gz
tar -xvf lighthouse-v4.3.0-x86_64-unknown-linux-gnu.tar.gz
# Generate a EL<->CL Secret
openssl rand -hex 32 | tr -d "\n" | sudo tee /secrets/jwt.hex
# Run Lighthouse
./lighthouse bn --network mainnet --execution-endpoint http://localhost:8551 --execution-jwt /secrets/jwt.hex --checkpoint-sync-url https://mainnet.checkpoint.sigp.io --disable-deposit-contract-sync
# Run Reth
export RUST_LOG=info
cd reth
reth node --authrpc.jwtsecret /secrets/jwt.hex --authrpc.addr 127.0.0.1 --http --http.api all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment