This repository was archived by the owner on Aug 7, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathinit-full-node.sh
More file actions
56 lines (44 loc) · 1.78 KB
/
init-full-node.sh
File metadata and controls
56 lines (44 loc) · 1.78 KB
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
CHAIN_ID=gm
BASE_DIR="$HOME/.gm_fn"
P2P_ID="your-p2p-id"
# notice that this will remove the existing rollkit.toml that was used to run sequencing node
# if you need to run sequencing node again, you should update config_dir to the $HOME/gm/.gm
rm -rf $BASE_DIR rollkit.toml
cat << EOF > rollkit.toml
entrypoint = "$HOME/gm/cmd/gmd/main.go"
[chain]
config_dir = "$BASE_DIR"
EOF
rollkit rebuild
rollkit init FullNode --chain-id $CHAIN_ID
cp -R "$HOME/gm/.gm/config/genesis.json" "$BASE_DIR/config/genesis.json"
# rollkit logo
cat <<'EOF'
:=+++=.
-++- .-++:
.=+=. :++-.
-++- .=+=: .
.=+=: -%@@@*
+%- .=#@@@@@@*
-++- -*%@@@@@@%+:
.=*=. .=#@@@@@@@%=.
-++-.-++: =*#@@@@@%+:.-++-=-
.=+=. :=+=.-: @@#=. .-*@@@@%
=*=: .-==+- :+#@@@@@@%-
:++- -*@@@@@@@#=:
=%+=. .=#@@@@@@@#%:
-++: -++- *+=@@@@%+: =#*##-
=*=. :=+=---@*=. .=*@@@@@%
.-+=: :-: :+%@@@@@@%+.
:=+- -*@@@@@@@#=.
.=+=: .=#@@@@@@%*-
-++- *=.@@@#+:
.====+*-.
______ _ _ _ _ _
| ___ \ | || || | (_)| |
| |_/ / ___ | || || | __ _ | |_
| / / _ \ | || || |/ /| || __|
| |\ \ | (_) || || || < | || |_
\_| \_| \___/ |_||_||_|\_\|_| \__|
EOF
rollkit start --rollkit.da.address http://127.0.0.1:7980 --rpc.laddr tcp://127.0.0.1:46657 --grpc.address 127.0.0.1:9390 --p2p.seeds $P2P_ID@127.0.0.1:36656 --p2p.laddr "0.0.0.0:46656" --log_level debug --minimum-gas-prices="0.025stake"