Update 0g.sh

This commit is contained in:
smeb y 2024-05-22 00:46:55 +08:00 committed by GitHub
parent 19ce15cb8f
commit 3071c4260f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

3
0g.sh
View File

@ -223,7 +223,8 @@ cd run
read -p "请输入你想导入的EVM钱包私钥不要有0x: " minerkey read -p "请输入你想导入的EVM钱包私钥不要有0x: " minerkey
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 sed -i 's|blockchain_rpc_endpoint = "https://rpc-testnet.0g.ai"|blockchain_rpc_endpoint = "https://evm-rpc-0gchain.dadunode.com"|g' config.toml
sed -i 's/log_sync_start_block_number = 80981/log_sync_start_block_number = 223989/' 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