Skip to main content
Development Hyperledger Fabric Network Setup and Writing Chaincode
Steps to setup Hyperledger Fabric for development
- Start docker container(s)
- Validate all the containers are running
- Fabric services are running
- All containers should be running for at least 2 minutes
- Create a new channel
- Join peers to the channel
- Update achor peers on the channel created
Automating setup
- Using a bash script to automate the process
- It makes it easier and faster
Writing Chaincode
- Write Chaincode in Dev Mode
- Make sure TLS is disabled
- Example: FABRIC_CA_SERVER_TLS_ENABLED=false
- Installing chaincode on the peers to make them endorsing peers
- Instantiate chaincode on the channel
- This will create a new docker container
- Test the chaincode written above
Comments
Post a Comment