Skip to content

Commit

Permalink
update Lightnode relete doc (#1604)
Browse files Browse the repository at this point in the history
* update lightnode  relate doc
  • Loading branch information
wenlinlee committed Dec 13, 2022
1 parent cd39760 commit 3a99b9e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
13 changes: 11 additions & 2 deletions 3.x/zh_CN/docs/tutorial/air/build_chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Usage:
-I <chain id> [Optional] set the chain id, default: chain0
-v <FISCO-BCOS binary version> [Optional] Default is the latest v3.1.1
-l <IP list> [Required] "ip1:nodeNum1,ip2:nodeNum2" e.g:"192.168.0.1:2,192.168.0.2:3"
-L <fisco bcos lightnode exec> [Optional] fisco bcos lightnode binary exec
-L <fisco bcos lightnode exec> [Optional] fisco bcos lightnode executable, input "download_binary" to download lightnode binary or assign correct lightnode binary path
-e <fisco-bcos exec> [Optional] fisco-bcos binary exec
-t <mtail exec> [Optional] mtail binary exec
-o <output dir> [Optional] output directory, default ./nodes
Expand Down Expand Up @@ -87,7 +87,16 @@ expand node e.g
`192.168.0.1:2, 127.0.0.1:4`

### **`L`选项[**Optional**]**
用于配置开启FISCO BCOS轻节点模式,-L 后面指定Air版本轻节点的二进制可执行文件路径,若不指定,则默认拉取最新版本的轻节点二进制。
用于配置开启FISCO BCOS轻节点模式,-L 后面可指定Air版本轻节点的二进制可执行文件路径,也可输入"download_binary",则默认下载最新版本的轻节点二进制,如下图所示。

```shell
# 两个节点的P2P服务分别占用30300和30301端口,RPC服务分别占用20200和20201端口
# -L 启动轻节点模块,"download_binary" 默认拉去最新版本二进制文件
$ bash build_chain.sh -p 30300,20200 -l 127.0.0.1:2 -L download_binary
# 指定轻节点二进制路径
$ bash build_chain.sh -p 30300,20200 -l 127.0.0.1:2 -L /bin/fisco-bcos-lightnode
```


### **`e`选项[**Optional**]**

Expand Down
5 changes: 3 additions & 2 deletions 3.x/zh_CN/docs/tutorial/lightnode/build_chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Usage:
-I <chain id> [Optional] set the chain id, default: chain0
-v <FISCO-BCOS binary version> [Optional] Default is the latest v3.1.1
-l <IP list> [Required] "ip1:nodeNum1,ip2:nodeNum2" e.g:"192.168.0.1:2,192.168.0.2:3"
-L <fisco bcos lightnode exec> [Optional] fisco bcos light node executable
-L <fisco bcos lightnode exec> [Optional] fisco bcos lightnode executable,input "download_binary" to download lightnode binary or assign correct lightnode binary path
-e <fisco-bcos exec> [Optional] fisco-bcos binary exec
-t <mtail exec> [Optional] mtail binary exec
-o <output dir> [Optional] output directory, default ./nodes
Expand Down Expand Up @@ -67,7 +67,7 @@ expand node e.g
```

### **`L`选项[**Optional**]**
用于配置开启FISCO BCOS轻节点模式,需要开启轻节点时,使用L选项指定轻节点程序的路径,build_chain.sh将自动生成轻节点到o选项指定的目录中。
用于配置开启FISCO BCOS轻节点模式,需要开启轻节点时,使用L选项指定轻节点程序的路径或输入"download_binary"自动下载最新二进制,build_chain.sh将自动生成轻节点到o选项指定的目录中。

案例:

Expand All @@ -76,6 +76,7 @@ expand node e.g
# RPC服务分别占用20200和20201端口
# 轻节点将生成到nodes/lightnode中
$ bash build_chain.sh -p 30300,20200 -l 127.0.0.1:2 -L /home/user/FISCO-BCOS/build/lightnode/fisco-bcos-lightnode
$ bash build_chain.sh -p 30300,20200 -l 127.0.0.1:2 -L download_binary
```

build_chain.sh将生成nodes目录,轻节点位于nodes目录的lightnode中。
Expand Down

0 comments on commit 3a99b9e

Please sign in to comment.