-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathterra.sh
62 lines (48 loc) · 2.15 KB
/
terra.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
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$PATH
echo "export GOPATH=$HOME/go" >> ~/.bashrc
echo "export PATH=$GOPATH/bin:$PATH" >> ~/.bashrc
#source ~/.bashrc
sudo apt-get update
sudo apt upgrade -y
sudo apt-get install add-apt-repository git
sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt-get update
#go 1.13
sudo apt-get install -y golang-go make gcc python jq liblz4-tool
git clone https://github.com/terra-project/core/
cd core
git checkout v0.2.6
make
#if you have error add latest version of lint in go.mod
#https://github.com/golangci/golangci-lint/releases
terrad version --long
terracli version --long
#/etc/security/limits.conf
#* soft nofile 65535
#* hard nofile 65535
terrad init moonlet
wget https://raw.githubusercontent.com/terra-project/launch/master/columbus-2/columbus-2-genesis.json
mv columbus-2-genesis.json ../.terrad/config/genesis.json
vi ../.terrad/config/config.toml
#add:
#seeds = "b416f0b04e2c71b8d76f993468352030e2dcf2a9@public-seed-node.columbus.certus.one:26656, 0621acccfc2c847e67d84eb234bcc26323a103c3@public-seed.terra.dev:26656, 46bba3a2c615ea5b569f086344f932fa11e81c01@public-seed2.terra.dev:26656"
#persistent_peers = "e6325ba7c490ba371135c9f3fcead66da1bd8cf1@terra-sentry01.dokia.cloud:26656, dba5defd7b120937da37aea7f37d06870637558d@terra-sentry02.dokia.cloud:26656, eb4ce12133c450ba6665e06309570ea2843e21d8@167.86.104.33:26656"
#terrad unsafe-reset-all
cd /.terrad
#check the latest snapshot https://www.chainlayer.io/
wget http://quicksync.chainlayer.io/terra/columbus-2.20190924.0215.tar.lz4
lz4 -d cosmoshub-2.20190924.0605.tar.lz4| tar xf -
terrad start
#check if synced up
terracli status|jq
terracli tx staking create-validator --amount=9000000uluna --pubkey=$(terrad tendermint show-validator) --moniker="moonlet" --chain-id=columbus-2 --from=moonlet --commission-rate="0.10" --commission-max-rate="0.20" --commission-max-change-rate="0.01" --min-self-delegation="1000000"
#see valoper keys
gaiacli keys show moonlet --bech=val
#upgrade node softaware
############
mv core core.bck
git clone https://github.com/terra-project/core/
git checkout vX.X
make
pm2 restart