feat: add shell sripts to start nodes

This commit is contained in:
aryansonid 2026-03-13 13:24:29 +05:30
parent 22a17d2c97
commit 0f987772b7
2 changed files with 28 additions and 0 deletions

14
test/node1.sh Normal file
View file

@ -0,0 +1,14 @@
#!/bin/sh
# Node 1: Whitelisted PoW miner
set -e
# Initialize with PoW genesis
geth --datadir /app/node1 init /app/docker/genesis.json
# For Ethash mining we don't need local keys; we can mine directly to the etherbase.
geth --datadir /app/node1 \
--networkid 1234 --nodiscover \
--http --http.addr 0.0.0.0 --http.port 8545 \
--port 30303 \
--http.api eth,net,web3,admin,miner \
--mine --miner.etherbase 0xca6b49ee60cdd276ab503fbd6fb80a3cfbc06ffc

14
test/node2.sh Normal file
View file

@ -0,0 +1,14 @@
#!/bin/sh
# Node 2: Not whitelisted PoW miner
set -e
# Initialize with PoW genesis
geth --datadir /app/node2 init /app/docker/genesis.json
# For Ethash mining we don't need local keys; we can mine directly to the etherbase.
geth --datadir /app/node2 \
--networkid 1234 --nodiscover \
--http --http.addr 0.0.0.0 --http.port 8546 \
--port 30304 \
--http.api eth,net,web3,admin,miner \
--mine --miner.etherbase 0xab52b2c71f61cd9447a932c0cb55d1752571dab8