-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcryptoseaman.sh
50 lines (41 loc) · 1.35 KB
/
cryptoseaman.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
#!/bin/bash
echo "Input your detail here: "
read -p "Input your IP Address: " IP_address
read -p "Input your Https API: " https_endpoint
read -p "Input your WSS API: " wss_endpoint
{
sudo systemctl stop chainflip-engine0.10
sudo rm -rf /etc/chainflip/config/Settings.toml
sudo tee /etc/chainflip/config/Settings.toml > /dev/null <<EOF
# Default configurations for the CFE
[node_p2p]
node_key_file = "/etc/chainflip/keys/node_key_file"
ip_address = "$IP_address"
port = "8078"
[state_chain]
ws_endpoint = "ws://127.0.0.1:9944"
signing_key_file = "/etc/chainflip/keys/signing_key_file"
[eth]
private_key_file = "/etc/chainflip/keys/ethereum_key_file"
[eth.rpc]
ws_endpoint = "$wss_endpoint"
http_endpoint = "$https_endpoint"
[dot.rpc]
http_endpoint = "https://rpc-pdot.chainflip.io:443"
ws_endpoint = "wss://rpc-pdot.chainflip.io:443"
# [dot.backup_rpc]
# ws_endpoint = "wss://rpc-pdot2.chainflip.io:443"
# http_endpoint = "https://rpc-pdot2.chainflip.io:443"
[btc.rpc]
basic_auth_password = "flip"
basic_auth_user = "flip"
http_endpoint = "http://a108a82b574a640359e360cf66afd45d-424380952.eu-central-1.elb.amazonaws.com"
# [btc.backup_rpc]
# http_endpoint = "http://second-node-424380952.eu-central-1.elb.amazonaws.com"
# rpc_user = "flip2"
# rpc_password = "flip2"
[signing]
db_file = "/etc/chainflip/data.db"
EOF
sudo systemctl start chainflip-engine0.10
}