hyperledger / fabric-chaincode-go

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

GRPC message size must be configurable #33

Open kolayuk opened 2 years ago

kolayuk commented 2 years ago

Because of changes in Fabric 2.3.3 GRPC message size must be configurable via peer.maxSendMsgSize changelog But in chaincode client it is hardcoded to 100M: https://github.com/hyperledger/fabric-chaincode-go/blob/main/shim/internal/client.go#L19

Peer must provide actual size to chaincode while building container (via env for example like it is done with CORE_PEER_TLS_ENABLED) and chaincode server must read it.