Skip to content

Instantly share code, notes, and snippets.

@mablr
Created October 9, 2025 11:59
Show Gist options
  • Select an option

  • Save mablr/82fa6013c288f4a20e7be7c357092ba5 to your computer and use it in GitHub Desktop.

Select an option

Save mablr/82fa6013c288f4a20e7be7c357092ba5 to your computer and use it in GitHub Desktop.

reth

Launch nodes which will use only dicv5 protocol to discover themselves.

Node 0

RUST_LOG=info,net::discv5=trace ./target/debug/reth node --chain dev\
  --disable-dns-discovery\
  --disable-discv4-discovery\
  --enable-discv5-discovery\
  --disable-nat\
  --addr 127.0.0.1\
  --port 30303\
  --discovery.v5.port 9200\
  --authrpc.port 8551\
   --no-persist-peers\
  --datadir target/reth0/

Node 1

RUST_LOG=info,net::discv5=trace ./target/debug/reth node --chain dev\
  --disable-dns-discovery\
  --disable-discv4-discovery\
  --enable-discv5-discovery\
  --disable-nat\
  --addr 127.0.0.1\
  --port 30304\
  --discovery.v5.port 9201\
  --authrpc.port 8552\
  --no-persist-peers\
  --datadir target/reth1/\
  --bootnodes "enode://<NODE0_ID>@127.0.0.1:30303?discport=9200"

Node N ...

op-reth

same ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment