Update 0g.sh

This commit is contained in:
smeb y 2024-06-21 22:06:54 +08:00 committed by GitHub
parent 597be6d90c
commit 1d97cd9961
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

4
0g.sh
View File

@ -176,7 +176,7 @@ read -p "请输入您想设置的验证者的名字: " validator_name
read -p "请输入您的验证者详情(例如'吊毛资本': " details
0gchaind tx staking create-validator \
0gchaind tx staking create-validator --node $OG_RPC_PORT \
--amount=1000000ua0gi \
--pubkey=$(0gchaind tendermint show-validator) \
--moniker=$validator_name \
@ -280,7 +280,7 @@ screen -dmS storage_kv ../target/release/zgs_kv --config config.toml
function delegate_self_validator() {
read -p "请输入质押代币数量(单位为ua0gai,比如你有1000000个ua0gai留点水给自己输入900000回车就行): " math
read -p "请输入钱包名称: " wallet_name
0gchaind tx staking delegate $(0gchaind keys show $wallet_name --bech val -a) ${math}ua0gi --from $wallet_name --gas=auto --gas-adjustment=1.4 -y
0gchaind tx staking delegate $(0gchaind keys show $wallet_name --bech val -a) --node $OG_RPC_PORT ${math}ua0gi --from $wallet_name --gas=auto --gas-adjustment=1.4 -y
}