go-ethereum/test/node2.sh
2026-03-13 13:24:29 +05:30

14 lines
No EOL
462 B
Bash

#!/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