0

I have two organizations which have a peer each, where Org1 takes some data and sends only selected data in it to Org2 for further processing, where they have only 1 channel.

there are no other organizations in the channel and only 1 channel is established between these two Org's.

How can they have their ledger being updated? and,How can i achieve this in Hyperledger Fabric?

Kshitiz Sharma
  • 722
  • 6
  • 14
  • 34

1 Answers1

0

basically, the concept of organizations is about to map the real-life (organizations - companies - business corporations) which can have multiple peers/machines which is participating in Blockchain network, and such thing doesn't mean they didn't share the same ledger.... in matter fact all the organizations with all peers behind this organizations sharing the same ledger and once you submit any transaction from any of this peers and the transaction is committed and done successfully, the rest of organizations with all peers will sync with the new transaction and get copy of whatever happened in the ledger...

but keep in mind this should be happen in the channel scope, channels is about to separate ledgers, each channel have it's own specific transactions / data separated form other channels

so if you have 2 channels let's say (Ch1 , Ch2) and each channel have 2 organizations (Org1, Org2) and each organization have 1 or more than 1 peer: all peers inside all organizations in channel (Ch1) will have it's own transactions and data and will not sync or share it with channel (Ch2)

summary:

  • organizations share the same ledger and get copy from any transaction and have it's own copy of data

  • channels didn't share ledgers and each channel have it's own separate data which is not shared with another channel

hope this point is very clear now for you....

  • So a chaincode instantiated in one channel can call the chaincode instantiated in different channel, if they are installed on the same peers belonging to that channel? – Kshitiz Sharma May 09 '18 at 07:31