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

14 lines
No EOL
458 B
Bash

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