hyperledger / fabric-chaincode-go

Hyperledger Fabric Packages for Go Chaincode
https://pkg.go.dev/github.com/hyperledger/fabric-chaincode-go
Apache License 2.0
138 stars 133 forks source link

Chaincode server shim side#fab 14086 #6

Closed muralisrini closed 4 years ago

muralisrini commented 5 years ago

Chaincode-as-server shim implementation for go chaincodes

muralisrini commented 5 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 do

cs := &ChaincodeServer{...}
cs.Start()

Agree, and it'll help open up pattern of usage as well. Will do it.