-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrunning.sh
115 lines (108 loc) · 4.11 KB
/
running.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#!bin/bash
identity=Gitshock-GIP4844
function geth() {
nohup geth \
--http \
--http.port 8545 \
--http.api=eth,net,web3,admin,engine \
--http.addr=0.0.0.0 \
--http.vhosts=* \
--http.corsdomain=* \
--ws \
--ws.api "eth,net,web3,admin,engine" \
--ws.addr=0.0.0.0 \
--ws.port 8557 \
--identity "$identity" \
--light.maxpeers 30 \
--bloomfilter.size 2048 \
--cache 1024 \
--gcmode="archive" \
--networkid 1881 \
--datadir "/home/admin/eth-generator/data/geth-data" \
--authrpc.port 8551 \
--port 30303 \
--discovery.port 30303 \
--verbosity 3 \
--syncmode full \
--allow-insecure-unlock \
--unlock "0x9999995993dd7eafd2753A4c7E35c2354B112036" \
--password "/home/admin/eth-generator/data/geth-data/keystore/password.txt" \
> /home/admin/eth-generator/data/log/geth.log &
}
function beacon() {
nohup lighthouse beacon \
--http \
--eth1 \
--http-address "127.0.0.1" \
--http-allow-sync-stalled \
--execution-endpoints "http://127.0.0.1:8551" \
--http-port=5052 \
--enr-udp-port=9000 \
--enr-tcp-port=9000 \
--discovery-port=9000 \
--port=9000 \
--metrics-allow-origin="*" \
--metrics \
--metrics-address "127.0.0.1" \
--metrics-port 5054 \
--testnet-dir "/home/admin/eth-generator/data/config_data" \
--datadir "/home/admin/eth-generator/data/beacon-data" \
--jwt-secrets="/home/admin/eth-generator/data/geth-data/geth/jwtsecret" \
--boot-nodes="enr:-Ly4QOlgr3GCatU8b_VpHSmeidjByL7snKah73AfOWdwkHnqVsLBcQm_MYg8tWHD2a8BNBRWtO9_BsuK24Th6BLJi_UCh2F0dG5ldHOIAAAAAAAAAACEZXRoMpC7pNqWAwAAAP__________gmlkgnY0gmlwhDIQX6-Jc2VjcDI1NmsxoQMw--YVJhcIiMquVS2A7Dt9ZlytkuDOvAUj-ohx7x8XBIhzeW5jbmV0cwCDdGNwgiMog3VkcIIjKA" \
--suggested-fee-recipient "0x2BC6649aaA5bd67b25B6519Ac50A6305Ce66B7D3" \
> /home/admin/eth-generator/data/log/beacon.log &
}
function beacon2() {
nohup lighthouse beacon \
--http \
--eth1 \
--http-address "127.0.0.1" \
--http-allow-sync-stalled \
--execution-endpoints "http://127.0.0.1:8551" \
--http-port=5053 \
--enr-udp-port=9002 \
--enr-tcp-port=9002 \
--discovery-port=9002 \
--port=9002 \
--metrics-allow-origin="*" \
--metrics \
--metrics-address "127.0.0.1" \
--metrics-port 5055 \
--testnet-dir "/home/admin/eth-generator/data/config_data" \
--datadir "/home/admin/eth-generator/data/beacon-data-2" \
--jwt-secrets="/home/admin/eth-generator/data/geth-data/geth/jwtsecret" \
--boot-nodes="enr:-Ly4QOlgr3GCatU8b_VpHSmeidjByL7snKah73AfOWdwkHnqVsLBcQm_MYg8tWHD2a8BNBRWtO9_BsuK24Th6BLJi_UCh2F0dG5ldHOIAAAAAAAAAACEZXRoMpC7pNqWAwAAAP__________gmlkgnY0gmlwhDIQX6-Jc2VjcDI1NmsxoQMw--YVJhcIiMquVS2A7Dt9ZlytkuDOvAUj-ohx7x8XBIhzeW5jbmV0cwCDdGNwgiMog3VkcIIjKA,enr:-LS4QJu4r75igHKERnNJ1mhMu7kc12lRfkIHlFLEUrxSrbFZZOLiUEdQxptFB4fU8_eRF8OA5WznFoLel5JtEduiQJkBh2F0dG5ldHOIAAAAAAAAAACEZXRoMpBOD_4PQAAYgRAnAAAAAAAAgmlkgnY0iXNlY3AyNTZrMaED3UOnS23zxq961werjhFZJxclvYJ5oo4gV_MwHvRbFJWIc3luY25ldHMAg3RjcIIjKIN1ZHCCIyg" \
--suggested-fee-recipient "0x2BC6649aaA5bd67b25B6519Ac50A6305Ce66B7D3" \
> /home/admin/eth-generator/data/log/beacon-2.log &
}
function validatorImport() {
lighthouse account validator import \
--testnet-dir "/home/admin/eth-generator/data/config_data" \
--datadir /home/admin/eth-generator/data/validator-node \
--directory /home/admin/eth-generator/data/validator-data/validator_keys \
--password-file /home/admin/eth-generator/data/validator-data/validator_keys/password.txt \
--reuse-password
}
function validator() {
nohup lighthouse vc \
--http \
--unencrypted-http-transport \
--http-allow-origin="*" \
--http-port 5062 \
--http-address 127.0.0.1 \
--metrics \
--metrics-address "127.0.0.1" \
--metrics-port 5059 \
--metrics-allow-origin="*" \
--datadir "/home/admin/eth-generator/data/validator-node" \
--testnet-dir "/home/admin/eth-generator/data/config_data" \
--suggested-fee-recipient "0x2BC6649aaA5bd67b25B6519Ac50A6305Ce66B7D3" \
--graffiti "Devnet-Gitshock" \
--beacon-nodes "http://127.0.0.1:5053" \
> /home/admin/eth-generator/data/log/validator.log &
}
geth
beacon
beacon2
validatorImport
validator