mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
14 lines
No EOL
462 B
Bash
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 |