Update 0g.sh

This commit is contained in:
smeb y 2024-04-10 12:51:24 +08:00 committed by GitHub
parent 393eeda293
commit 32b4c967b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

12
0g.sh
View File

@ -255,9 +255,15 @@ cargo build --release
#后台运行
cd run
echo "请输入 blockchain_rpc_endpoint 的值: "
echo "请输入RPC节点信息: "
read blockchain_rpc_endpoint
echo "请输入矿工的EVM钱包地址: "
read minerid
echo "请输入矿工的私钥: "
read minerkey
cat > config.toml <<EOF
stream_ids = ["000000000000000000000000000000000000000000000000000000000000f2bd", "000000000000000000000000000000000000000000000000000000000000f009", "00000000000000000000000000"]
@ -273,6 +279,8 @@ log_config_file = "log_config"
blockchain_rpc_endpoint = "$blockchain_rpc_endpoint"
log_contract_address = "0x22C1CaF8cbb671F220789184fda68BfD7eaA2eE1"
log_sync_start_block_number = 670000
miner_key ="$minerkey"
miner_id ="$minerid"
EOF
@ -309,7 +317,7 @@ function main_menu() {
echo "8. 卸载节点"
echo "9. 创建验证者"
echo "10. 创建存储节点"
echo "11. 创建存储KV节点"
echo "11. 创建存储KV节点(非必要,可以不用安装)"
echo "12. 给自己验证者地址质押代币"
read -p "请输入选项1-12: " OPTION