Skip to content

Parallel Chain Environment Construction

linj edited this page Nov 23, 2022 · 2 revisions

Parallel Chain Environment Construction

[TOC]

Official Version(Only Linux-like environments are supported)

1 Fetch Files

wget https://bty.oss-ap-southeast-1.aliyuncs.com/chain33/paraChain.tar.gz

2 Uncompress

tar zxvf paraChain.tar.gz

3 Configuration File Modification

Value ParaRemoteGrpcClient as:"101.37.227.226:8802,39.97.20.242:8802,47.107.15.126:8802,jiedian2.33.cn"

The modifications are shown below: paraRemoteGrpcClient

Start Chain33 process

cd paraChain && ./chain33 -f chain33.para.toml

Since the official bin file only supports linux-like environments, so [native compiled](#native compiled) binary file is needed in the Windows environment.

Native Compilation

1 Switch Path

cd ${GoPath}/src/github.com/33cn

GoPath is the environment variable after the Go compiler is installed. If Go is not installed, refer to Go environmental installation

If any subdirectories other than GoPath do not exist, please create them manually.

2 Get the Latest Chain33 Code Branch to Compile

git clone git@github.com:33cn/plugin.git

2.1 Compiling in Linux

cd plugin && make

2.2 Compiling in Windows

Use the following instructions in Command Prompt:

cd plugin && build.bat

Use the following instructions in Powershell:

(cd .\plugin) -or (.\build.bat)

Clone this wiki locally