Skip to content

Instantly share code, notes, and snippets.

@srslafazan
Created March 7, 2024 01:35
Show Gist options
  • Save srslafazan/910671a75ba2f59674c1a73ded890a6e to your computer and use it in GitHub Desktop.
Save srslafazan/910671a75ba2f59674c1a73ded890a6e to your computer and use it in GitHub Desktop.
#/bin/bash
geth --datadir node1 account new
geth --datadir node2 account new
geth init --datadir node1 genesis.json
geth init --datadir node2 genesis.json
bootnode -genkey boot.key
bootnode -nodekey boot.key -addr 0.0.0.0:30305
geth \
--datadir node1
--port 30306 \
--bootnodes enode://719dc5cc050346bc2a14302f72976b0a49ce8759682d1e7f6d9749da1e5f5d43ab0d9b6670de1d762e91cf185715814eaa9e620fd8109d9ab6328b75fd997bbb@127.0.0.1:0?discport=30305 \
--networkid 10101 \
--unlock 0x3D87d2A00FD7eEfBD473ce7Fb7246B052a8Daca4 \
--password password.txt \
--authrpc.port 8555 \
--mine \
--miner.threads 1 \
--miner.etherbase 0x3D87d2A00FD7eEfBD473ce7Fb7246B052a8Daca4 \
--http \
--http.addr '0.0.0.0' \
--allow-insecure-unlock \
--syncmode full \
console
geth \
--datadir node2
--discovery.port 30317 \
--port 30316 \
--bootnodes enode://719dc5cc050346bc2a14302f72976b0a49ce8759682d1e7f6d9749da1e5f5d43ab0d9b6670de1d762e91cf185715814eaa9e620fd8109d9ab6328b75fd997bbb@127.0.0.1:0?discport=30305 \
--networkid 10101 \
--unlock 0x35daCA618cFcEC3e254848cEee0296464C2EBfd2 \
--password password.txt \
--authrpc.port 8565 \
--mine \
--miner.threads 1 \
--miner.etherbase 0x35daCA618cFcEC3e254848cEee0296464C2EBfd2 \
--http \
--http.addr '0.0.0.0' \
--allow-insecure-unlock \
--syncmode full \
console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment