Blockchain Lab(19) - Configuring the console in the newly created scale-free network

In the previous article Blockchain Lab (18) - Setting up a scale-free network using FISCO BCOS A network was set up , this network has not yet been configured with a console. The FISCO-BCOS technical document gives a creation of a 4-node network and console. That console cannot be directly used for the scale-free network in this article, mainly because the console certificate does not match.

This article is a scale-free network created previously, with a dedicated console configured. It is very common to set up multiple FISCO networks in an experimental environment. It is best to configure a separate console for each network for ease of use.

1. Download

According to FISCO technical documentation, download the download_console.sh script.

curl -LO https://github.com/FISCO-BCOS/console/releases/download/v2.9.2/download_console.sh

Execute this script.

chmod +x download_console.sh
./download_console.sh

Get a console compressed file and the decompressed folder console.

Insert image description here

2. Configuration

2.1 To configure common parameters of the console, please refer to FISCO technical documentation.

cp -n console/conf/config-example.toml console/conf/config.toml

Insert image description here

2.2 Configure the certificate of the console and copy the files in the sdk directory to the conf directory

Insert image description here

3. Test

3.1 Start a scale-free network with 100 nodes

Insert image description here

3.2 Start the console

Insert image description here

4. Test the contract in the console

Deploy contract cases. 100 nodes reached a consensus, and it was obvious that there was a large delay in deploying the contract.

Insert image description here

Call the contract interface. Similarly, the delay is large and the cost of PBFT consensus is high.

Insert image description here

The experimental environment is as follows

Virtual machine file: ubuntu20.04-Fisco

Obtain address: https://pan.baidu.com/s/1RlrSy_OuT3B7TMT5AJEGmA?pwd=oava

Contact information: [email protected]

Guess you like

Origin blog.csdn.net/qq_18807043/article/details/132637224