From 065de5b1b8683fc2a519dc562b8b6efdf1e135a3 Mon Sep 17 00:00:00 2001 From: smeb y <48400087+a3165458@users.noreply.github.com> Date: Tue, 9 Apr 2024 21:02:15 +0800 Subject: [PATCH] Update 0g.sh --- 0g.sh | 49 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git a/0g.sh b/0g.sh index df9f72e..840d6ab 100644 --- a/0g.sh +++ b/0g.sh @@ -263,6 +263,49 @@ echo '===进入对应路径:/0g-storage-node/run/log,使用tail -f logs文件 } + +function install_storage_kv() { + +# 克隆仓库 +git clone https://github.com/0glabs/0g-storage-kv.git + + +#进入对应目录构建 +cd 0g-storage-kv +git submodule update --init + +# 构建代码 +cargo build --release + +#后台运行 +cd run + +echo "请输入 blockchain_rpc_endpoint 的值: " +read blockchain_rpc_endpoint + +cat > config.toml <