-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathethereum-sync.sh
45 lines (38 loc) · 1.18 KB
/
ethereum-sync.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# to peek running logs: tail -f <file name>
MYPATH=/media/gtnetuser/HDD_16TB_ATLAS/ethereum
# setup working dir
mkdir -p ${MYPATH}
cd ${MYPATH}
# kill running processes
kill -9 $(pgrep geth)
kill -9 $(pgrep prysm)
kill -9 $(pgrep beacon)
# download prysm client
curl https://raw.githubusercontent.com/prysmaticlabs/prysm/master/prysm.sh --output prysm.sh && chmod +x prysm.sh
# clear log and data
rm -rf ethersync-client.log
rm -rf ethersync-beacon.log
rm -rf data
# create jwt secret
echo "2b4956f3c2dc15052da675bb58082b07698952bf3130ba99ad9c1fe2ca257e10" \
> ${MYPATH}/jwtsecret
# run geth process
nohup geth --mainnet \
--syncmode full \
--gcmode archive \
--datadir ${MYPATH}/data \
--http --authrpc.addr localhost \
--state.scheme="hash" \
--authrpc.vhosts=localhost \
--authrpc.port 8551 \
--authrpc.jwtsecret=${MYPATH}/jwtsecret \
>> ethersync-client.log &
# run prysm process
nohup ./prysm.sh beacon-chain \
--mainnet \
--datadir ${MYPATH}/data \
--checkpoint-sync-url=https://beaconstate.info \
--execution-endpoint=http://localhost:8551 \
--jwt-secret=${MYPATH}/jwtsecret \
--accept-terms-of-use \
>> ethersync-beacon.log &