-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart-processes.sh
executable file
·77 lines (62 loc) · 2.21 KB
/
start-processes.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/bin/bash
pkill geth
pkill beacon-chain
rm -rf gethdata
rm -rf beacondata
rm -rf validatordata
cp genesis-initial.json genesis.json
./prysmctl testnet generate-genesis \
--fork deneb \
--num-validators 2 \
--genesis-time-delay 30 \
--chain-config-file config.yml \
--geth-genesis-json-in genesis.json \
--output-ssz genesis.ssz \
--geth-genesis-json-out genesis.json
sleep 1
echo "Prysm genesis generated"
echo -e "\n\n" | ./geth --datadir=gethdata account import pk.txt
echo "Private key imported"
./geth --datadir=gethdata init genesis.json
sleep 1
echo "Geth genesis initialized"
mkdir logs
prysm_logs="$(pwd)/logs"
# Run the Prysm beacon node
./beacon-chain --datadir beacondata \
--min-sync-peers 0 \
--genesis-state genesis.ssz \
--bootstrap-node= \
--interop-eth1data-votes \
--chain-config-file config.yml \
--contract-deployment-block 0 \
--chain-id 32382 \
--rpc-host=127.0.0.1 \
--rpc-port=4000 \
--accept-terms-of-use \
--jwt-secret jwt.hex \
--suggested-fee-recipient 0x123463a4B065722E99115D6c222f267d9cABb524 \
--minimum-peers-per-subnet 0 \
--enable-debug-rpc-endpoints \
--verbosity=debug \
--execution-endpoint gethdata/geth.ipc > "${prysm_logs}/beacon-chain.log" 2>&1 &
echo "Beacon node started"
# Run Prysm validator client
./validator --beacon-rpc-provider=127.0.0.1:4000 \
--datadir validatordata \
--accept-terms-of-use \
--interop-num-validators 2 \
--chain-config-file config.yml > "${prysm_logs}/validator.log" 2>&1 &
echo "Validator client started"
./geth --http \
--http.api eth,net,web3 \
--ws --ws.api eth,net,web3 \
--authrpc.jwtsecret jwt.hex \
--datadir gethdata \
--nodiscover \
--syncmode full \
--allow-insecure-unlock \
--unlock 0x123463a4b065722e99115d6c222f267d9cabb524 \
--password password.txt > "${prysm_logs}/geth.log" 2>&1 &
echo "Geth network started"
echo "Running ..."