Update 0g.sh

This commit is contained in:
smeb y 2024-06-22 11:57:37 +08:00 committed by GitHub
parent d91f223a7e
commit e00df22cf9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

3
0g.sh
View File

@ -210,7 +210,7 @@ function install_storage_node() {
# 克隆仓库
git clone -b v0.3.0 https://github.com/0glabs/0g-storage-node.git
git clone -b v0.3.1 https://github.com/0glabs/0g-storage-node.git
#进入对应目录构建
cd 0g-storage-node
@ -226,6 +226,7 @@ cd run
read -p "请输入你想导入的EVM钱包私钥不要有0x: " minerkey
sed -i "s/miner_key = \"\"/miner_key = \"$minerkey\"/" config.toml
sed -i 's/log_sync_start_block_number = [0-9]*/log_sync_start_block_number = 0/' config.toml
screen -dmS zgs_node_session ../target/release/zgs_node --config config.toml