Skip to content

Commit

Permalink
ethereum/client-go and parameters updated to 1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
darienmh committed Aug 26, 2022
1 parent 9795f24 commit f8d82ef
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
14 changes: 7 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3"
services:
# The bootnode is the rendez-vous point for all other nodes.
bootnode:
image: ethereum/client-go:alltools-release-1.8
image: ethereum/client-go:alltools-release-1.10
ports:
- 30303:30303
volumes:
Expand All @@ -14,7 +14,7 @@ services:
# The node container is our entry point to issue RPC commands
# but it's not sealing.
node:
image: ethereum/client-go:alltools-release-1.8
image: ethereum/client-go:alltools-release-1.10
links: [bootnode]
ports:
- 8544-8546:8544-8546
Expand All @@ -26,7 +26,7 @@ services:
command: /scripts/node.sh 0x71b3D7405080197fC03cA82bCDd1764F1e14ABf2
# Sealer nodes are workers that commit blocks constantly.
sealer-one:
image: ethereum/client-go:alltools-release-1.8
image: ethereum/client-go:alltools-release-1.10
links: [bootnode]
volumes:
- ./scripts:/scripts:ro
Expand All @@ -35,7 +35,7 @@ services:
- /etc/localtime:/etc/localtime:ro
command: /scripts/sealer.sh 0x6c319A49787d10a6e0c72a25DB06cc555370c4DD
# sealer-two:
# image: ethereum/client-go:alltools-release-1.8
# image: ethereum/client-go:alltools-release-1.10
# restart: on-failure
# links: [bootnode]
# volumes:
Expand All @@ -45,7 +45,7 @@ services:
# - /etc/localtime:/etc/localtime:ro
# command: /scripts/sealer.sh 0x9E9581516679F57Aa7eb81D278841DF6aB93902B
# sealer-three:
# image: ethereum/client-go:alltools-release-1.8
# image: ethereum/client-go:alltools-release-1.10
# restart: on-failure
# links: [bootnode]
# volumes:
Expand All @@ -55,7 +55,7 @@ services:
# - /etc/localtime:/etc/localtime:ro
# command: /scripts/sealer.sh 0x71b3D7405080197fC03cA82bCDd1764F1e14ABf2
# sealer-four:
# image: ethereum/client-go:alltools-release-1.8
# image: ethereum/client-go:alltools-release-1.10
# restart: on-failure
# links: [bootnode]
# volumes:
Expand All @@ -65,7 +65,7 @@ services:
# - /etc/localtime:/etc/localtime:ro
# command: /scripts/sealer.sh 0x0Cbbb79B02449ea575F6185dd3C541E9ab8d8182
# sealer-five:
# image: ethereum/client-go:alltools-release-1.8
# image: ethereum/client-go:alltools-release-1.10
# restart: on-failure
# links: [bootnode]
# volumes:
Expand Down
6 changes: 3 additions & 3 deletions scripts/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ function prepareDatadir {
if [ ! -d $datadir/geth ]; then
echo "----------> A new data directory will be created!"
geth --datadir $datadir \
--etherbase $etherbase \
--networkid "18021982" \
--gasprice "1" \
--targetgaslimit "0x59a5380" \
--miner.etherbase $etherbase \
--miner.gasprice "1" \
--miner.gaslimit "0x59a5380" \
init genesis.json
fi
}
11 changes: 5 additions & 6 deletions scripts/node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ cp -R /keystore $datadir
prepareDatadir $datadir $etherbase

geth --datadir $datadir \
--etherbase $etherbase \
--networkid "18021982" \
--gasprice "1" \
--targetgaslimit "0x59a5380" \
--rpc --rpcaddr '0.0.0.0' --rpcport 8545 --rpccorsdomain '*' --rpcapi 'admin,db,eth,miner,net,web3,personal,txpool' \
--ws --wsaddr '0.0.0.0' --wsport 8546 --wsorigins '*' \
--miner.etherbase $etherbase \
--miner.gasprice "1" \
--miner.gaslimit "0x59a5380" \
--http --http.addr '0.0.0.0' --http.port 8545 --http.corsdomain '*' --http.api 'admin,db,eth,miner,net,web3,personal,txpool' \
--ws --ws.addr '0.0.0.0' --ws.port 8546 --ws.origins '*' \
--bootnodes "enode://f94118749beb981da38b82ab6be7b00dc0082783d698080fd0ae45a2c3d42f1ce74cbb153ffcfb1379b64235605bfff43f85b112032ddd9685ad2ab88735e1b1@${bootnode}:30301" \
--unlock $addresses \
--password "/dev/null" \
--verbosity 3
6 changes: 3 additions & 3 deletions scripts/sealer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ cp /keystore/$etherbase.json $datadir/keystore
prepareDatadir $datadir $etherbase

geth --datadir $datadir \
--etherbase $etherbase \
--networkid "18021982" \
--gasprice "1" \
--targetgaslimit "0x59a5380" \
--miner.etherbase $etherbase \
--miner.gasprice "1" \
--miner.gaslimit "0x59a5380" \
--bootnodes "enode://f94118749beb981da38b82ab6be7b00dc0082783d698080fd0ae45a2c3d42f1ce74cbb153ffcfb1379b64235605bfff43f85b112032ddd9685ad2ab88735e1b1@${bootnode}:30301" \
--unlock $etherbase \
--password "/dev/null" \
Expand Down

0 comments on commit f8d82ef

Please sign in to comment.