Reputation: 31
I have a question. I want to know whether all nodes execute the chain code or only endorsement nodes execute the chain code?
Upvotes: 0
Views: 344
Reputation: 41222
The only peers to execute chaincode are the endorsing peers, rest only validates during the commit time whenever the transaction satisfies endorsement policy. And in order to be peer to be able to endorse the transaction proposal someone (admin) has to install the chaincode on it.
You can find more details in documentation or there is a nice blog post which also describes it pretty well.
Basically flow from high level perspective works as following:
There some more int depth detail published in the official Fabric paper.
Upvotes: 3