Update Artela.sh

This commit is contained in:
smeb y 2024-07-10 09:00:55 +08:00 committed by GitHub
parent 9b5da76d08
commit c82463cbef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -87,11 +87,23 @@ function install_node() {
git checkout v0.4.7-rc7-fix-execution git checkout v0.4.7-rc7-fix-execution
make install make install
cd $HOME
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
tar -xvf artelad_0.4.7_rc7_fix_execution_Linux_amd64.tar.gz
mkdir libs
mv $HOME/libaspect_wasm_instrument.so $HOME/libs/
mv $HOME/artelad /usr/local/bin/
echo 'export LD_LIBRARY_PATH=$HOME/libs:$LD_LIBRARY_PATH' >> ~/.bashrc
source ~/.bashrc
# 配置artelad # 配置artelad
artelad config chain-id artela_11822-1 artelad config chain-id artela_11822-1
artelad init "$NODE_MONIKER" --chain-id artela_11822-1 artelad init "$NODE_MONIKER" --chain-id artela_11822-1
artelad config node tcp://localhost:3457 artelad config node tcp://localhost:3457
# 获取初始文件和地址簿 # 获取初始文件和地址簿
curl -L https://snapshots.dadunode.com/artela/genesis.json > $HOME/.artelad/config/genesis.json curl -L https://snapshots.dadunode.com/artela/genesis.json > $HOME/.artelad/config/genesis.json
curl -L https://snapshots.dadunode.com/artela/addrbook.json > $HOME/.artelad/config/addrbook.json curl -L https://snapshots.dadunode.com/artela/addrbook.json > $HOME/.artelad/config/addrbook.json