Skip to content

Instantly share code, notes, and snippets.

0x0581d9a6dc5bff3d1db5a25c625e5fc0315c6712c6fe296e0ec4cbe2f5da6bd5

# !/bin/bash
# bash cluster <cluster_root> <number_of_clusters> <network_id> <runid> <local_IP> [[params]...]
# sets up a local ethereum network cluster of nodes
# - <cluster_root> is the root directory for the cluster, the nodes are set up
# - <number_of_clusters> is the number of clusters
# with datadir `<root>/01`, `<root>/02`, ...
# - new accounts are created for each node
# - they launch on port 30301, 30302, ...
# - they start rpc on port 8101, 8102, ...