mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 13:21:37 +00:00
feat: add shell sripts to start nodes
This commit is contained in:
parent
22a17d2c97
commit
0f987772b7
2 changed files with 28 additions and 0 deletions
14
test/node1.sh
Normal file
14
test/node1.sh
Normal 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
14
test/node2.sh
Normal 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
|
||||
Loading…
Reference in a new issue