Skip to content

Instantly share code, notes, and snippets.

@TanjinAlam
Last active December 14, 2022 05:45
Show Gist options
  • Save TanjinAlam/877a357873e291b73f0cc541d941a235 to your computer and use it in GitHub Desktop.
Save TanjinAlam/877a357873e291b73f0cc541d941a235 to your computer and use it in GitHub Desktop.
eth-node-poa
mkdir node1 node2
geth account new --datadir ./node1
geth account new --datadir ./node2
puppeth
export mytestnet.json
geth init --datadir "./node1" mytestnet.json
geth init --datadir "./node2" mytestnet.json
bootnode -genkey boot.key
bootnode --nodekey boot.key
geth --datadir ./node1 --port 30302 --http.port 8545 --bootnodes enode://af57ce70e38060ceaa11335bcaa8f8d3f485a4902cbde64a35bb5b61dbaf98675fd7012b40da2752287be4b31ec9b9fbc23d2f815f9bb5542361ab22d52d510d@127.0.0.1:0?discport=30303 --networkid 1337 --unlock '0x00da0747c08e88Ab52c0Ae0568E1edB58B1D43Ac' --password ./password.txt --mine console
geth --datadir ./node2 --port 30303 --http.port 8547 --authrpc.port 8547 --ws.port 8547 --bootnodes enode://af57ce70e38060ceaa11335bcaa8f8d3f485a4902cbde64a35bb5b61dbaf98675fd7012b40da2752287be4b31ec9b9fbc23d2f815f9bb5542361ab22d52d510d@127.0.0.1:0?discport=30301 --networkid 1337 --unlock '0x4564F61C87D48d5C0f977242B7cd2e1189A633Aa' --password ./password.txt --mine console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment