Update Artela.sh
This commit is contained in:
parent
2a5cb6aa39
commit
2b3f004ef4
25
Artela.sh
25
Artela.sh
@ -84,17 +84,18 @@ function install_node() {
|
|||||||
cd $HOME
|
cd $HOME
|
||||||
git clone https://github.com/artela-network/artela
|
git clone https://github.com/artela-network/artela
|
||||||
cd artela
|
cd artela
|
||||||
git checkout main
|
git checkout v0.4.7-rc7-fix-execution
|
||||||
make install
|
make build
|
||||||
|
|
||||||
cd $HOME
|
# Setup the folder for Cosmovisor
|
||||||
wget https://github.com/artela-network/artela/releases/download/v0.4.7-rc7-fix-execution/artelad_0.4.7_rc7_fix_execution_Linux_amd64.tar.gz
|
mkdir -p $HOME/.artelad/cosmovisor/genesis/bin
|
||||||
tar -xvf artelad_0.4.7_rc7_fix_execution_Linux_amd64.tar.gz
|
mv build/artelad $HOME/.artelad/cosmovisor/genesis/bin
|
||||||
mkdir libs
|
|
||||||
mv $HOME/libaspect_wasm_instrument.so $HOME/libs/
|
# Create binary symlinks
|
||||||
mv $HOME/artelad /usr/local/bin/
|
sudo ln -s $HOME/.artelad/cosmovisor/genesis $HOME/.artelad/cosmovisor/current -f
|
||||||
echo 'export LD_LIBRARY_PATH=$HOME/libs:$LD_LIBRARY_PATH' >> ~/.bashrc
|
sudo ln -s $HOME/.artelad/cosmovisor/current/bin/artelad /usr/local/bin/artelad -f
|
||||||
source ~/.bashrc
|
|
||||||
|
go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@v1.5.0
|
||||||
|
|
||||||
# 配置artelad
|
# 配置artelad
|
||||||
artelad config chain-id artela_11822-1
|
artelad config chain-id artela_11822-1
|
||||||
@ -128,8 +129,8 @@ function install_node() {
|
|||||||
|
|
||||||
# 下载快照
|
# 下载快照
|
||||||
artelad tendermint unsafe-reset-all --home $HOME/.artelad --keep-addr-book
|
artelad tendermint unsafe-reset-all --home $HOME/.artelad --keep-addr-book
|
||||||
wget -O lasted_snapshot.tar.lz4 https://snapshots.dadunode.com/artela/artela_latest_tar.lz4
|
wget -O lasted_snapshot.tar.lz4 https://public-snapshot-storage-develop.s3.amazonaws.com/artela/artela_11822-1/snapshots/artela_9622238.tar.lz4
|
||||||
lz4 -c -d lasted_snapshot.tar.lz4 | tar -x -C $HOME/.artelad/data
|
lz4 -c -d lasted_snapshot.tar.lz4 | tar -x -C $HOME/.artelad
|
||||||
|
|
||||||
# 使用 PM2 启动节点进程
|
# 使用 PM2 启动节点进程
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user