Build from scratch to fabric2 based on consensus 1 distributed environment
Smart contract practice
1. Start the containers on each machine
Enter the scripts directory in 192.168.73.10 and execute Chmod + x up SH adds execution permission to the file, and then/ up.sh,
Then execute the above two commands on 92.168.73.20/30/40/50 respectively, and the fabric network is started. Next, use cli tool instead of client to in ...
Posted by NewBob on Tue, 24 May 2022 05:40:41 +0300
Hyperledger Fabric shell script builds Fabric network manually the next day
1. shell script Basics
1.1 introduction to shell script
What is a shell script
A collection of shell commands. You can also add some logical operations (if else for) to put these commands into a file
fileshell commands * nLogic can be addedIt needs to be executed in the terminal of linux
# test.sh
ls
pwd
if [ xxx ]
cd ..
...
Posted by creativeimpact on Fri, 22 Apr 2022 07:35:30 +0300
How to use CouchDB (release 2.2) in Fabric chain code
preface
1. Why CouchDB
Fabric Two types of node databases are supported. LevelDB Is the default embedded in peer The status database of the node. LevelDB Used to store chain code data as simple keys-Value pair. Only key, key range and compound key queries are supported. CouchDB Is an optional status database that supports JSON The format m ...
Posted by renegade33 on Mon, 11 Apr 2022 11:53:46 +0300