Update 0g.sh

This commit is contained in:
smeb y 2024-05-17 11:33:16 +08:00 committed by GitHub
parent 12182da5ce
commit 9c97070011
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

7
0g.sh
View File

@ -208,11 +208,10 @@ function install_storage_node() {
# 克隆仓库 # 克隆仓库
git clone https://github.com/0glabs/0g-storage-node.git git clone -b v0.2.0 https://github.com/0glabs/0g-storage-node.git
#进入对应目录构建 #进入对应目录构建
cd 0g-storage-node cd 0g-storage-node
git submodule update --init
# 构建代码 # 构建代码
cargo build --release cargo build --release
@ -223,10 +222,8 @@ cd run
read -p "请输入你想导入的EVM钱包私钥不要有0x: " minerkey read -p "请输入你想导入的EVM钱包私钥不要有0x: " minerkey
sed -i "s/miner_id = \"\"/miner_id = \"$(openssl rand -hex 32)\"/" config.toml
sed -i "s/miner_key = \"\"/miner_key = \"$minerkey\"/" config.toml sed -i "s/miner_key = \"\"/miner_key = \"$minerkey\"/" config.toml
sed -i 's|blockchain_rpc_endpoint = "https://rpc-testnet.0g.ai"|blockchain_rpc_endpoint = "https://0g-evm-rpc.stakeme.pro"|g' config.toml
screen -dmS zgs_node_session ../target/release/zgs_node --config config.toml screen -dmS zgs_node_session ../target/release/zgs_node --config config.toml