forked from celestiaorg/networks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
entry.sh
31 lines (26 loc) · 1.14 KB
/
entry.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
#!/bin/bash
# Variables with upper letters only are set in Dockerfile
# Set variables
capp=celestia-appd
monk="james"
text="help"
CHAIN_ID="devnet-1"
NODE_NAME="bond007"
KEY_TYPE="test"
COINS_TYPE="800000000000celes"
# Display help and initialising later
#$capp $text
$capp init $monk --chain-id $CHAIN_ID
# Creating the account for validator #1
$capp keys add $NODE_NAME --keyring-backend=$KEY_TYPE
node_addr=$($capp keys show $NODE_NAME -a --keyring-backend $KEY_TYPE)
$capp add-genesis-account $node_addr $COINS_TYPE --keyring-backend $KEY_TYPE
$capp gentx $NODE_NAME 5000000000celes --keyring-backend=$KEY_TYPE --chain-id $CHAIN_ID
#$capp collect-gentxs
# Set proper defaults and change ports
sed -i 's#"tcp://127.0.0.1:26657"#"tcp://0.0.0.0:26657"#g' ~/.celestia-app/config/config.toml
sed -i 's/timeout_commit = "5s"/timeout_commit = "20s"/g' ~/.celestia-app/config/config.toml
sed -i 's/timeout_propose = "3s"/timeout_propose = "1s"/g' ~/.celestia-app/config/config.toml
sed -i 's/index_all_keys = false/index_all_keys = true/g' ~/.celestia-app/config/config.toml
# Open up rest api
sed -i '104 s/enable = false/enable = true/' ~/.celestia-app/config/app.toml