Closed muralisrini closed 4 years ago
The more I think about this, I think that people should explicitly decide that they want to run "chaincode as a server" - meaning rather than trying to differentiate via peerAddress / chaincodeAddress and using
shim.Start
for both, export the chaincode server and have people docs := &ChaincodeServer{...} cs.Start()
Agree, and it'll help open up pattern of usage as well. Will do it.
Chaincode-as-server shim implementation for go chaincodes
NOTE: latest fabric master was built and unit-tested by replacing vendored code with these changes.