Prepare to deploy the smart contract
Last updated
Was this helpful?
Last updated
Was this helpful?
In a Fabric network, we have multiple channels. Inside a channel, the participated peer nodes can interact with one another, and they can install and instantiate smart contracts.
Also, nodes outside the channel cannot read and write messages of that channel.
In a distributed system, such as a Fabric network, the order nodes run a consensus protocol to order all the put/get operations.
Peers are those nodes who actually keep the ledger of a channel. Also, they would endorse, verify, and commit the transactions.
If you want to know more details, you can read .
We have already set up a Hyperledger Fabric v2.3.0 Network with
- 1 orderer in node-1
- 3 peers on node-1, node-2, node-3
.
To stimulate different organizations (Smart Insurance, Great Insurance, Police), the peer of : - node-1 represents Great Insurance - node-2 represents Police - node-3 represents Smart Insurance
In the following section, we are going to create your own Fabric Channel and deploy the written smart contract to the existing Hyperledger Fabric Network.
To simulate the operation carried out by different organizations (Smart Insurance, Great Insurance, Police), we open 3 terminals.
In terminal 1 (as Great Insurance) :
In terminal 2 (as Police):
In terminal 3 (as Smart Insurance):