Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hyperledger Fabric. Is it possible to deploy more than one chaincode to the same channel?

Is it possible to deploy two different chaincodes to the same channel in Hyperledger fabric

like image 674
MahmoudBC Avatar asked Jan 28 '23 08:01

MahmoudBC


2 Answers

Yes. And its possible to deploy the same chaincode to 2 or more channels. You can even deploy the same chaincode to the same channel if you use a different name.

like image 170
jworthington Avatar answered May 16 '23 05:05

jworthington


when inspect into the block structure, I find a 'Chaincode Name' field in block, and I suppose that:

  • One channel has one ledger(offcial doc)
  • One channel can have two or more chaincodes
  • The block generated by different chaincode(we can simplely think so) will be stored in the same one ledger
  • The field 'Chaincode Name' in block will distinguish it's generated from which chaincode
like image 36
chuancey yang Avatar answered May 16 '23 07:05

chuancey yang