Update Artela.sh

This commit is contained in:
smeb y 2024-06-14 10:20:19 +08:00 committed by GitHub
parent 7692bffb2f
commit 234aa6fe8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -102,7 +102,11 @@ function install_node() {
sed -i 's|^persistent_peers *=.*|persistent_peers = "'$PEERS'"|' $HOME/.artelad/config/config.toml
# 配置裁剪
sed -i 's|^pruning *=.*|pruning = "custom"|; s|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|; s|^pruning-interval *=.*|pruning-interval = "10"|' $HOME/.artelad/config/app.toml
sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.artelad/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.artelad/config/app.toml
sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"0\"/" $HOME/.artelad/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"10\"/" $HOME/.artelad/config/app.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.artelad/config/config.toml
# 配置端口
node_address="tcp://localhost:3457"