chaincode_support.go
type ChaincodeSupport struct {
ca accesscontrol.CA
auth accesscontrol.Authenticator
runningChaincodes *runningChaincodes
peerAddress string
ccStartupTimeout time.Duration
peerNetworkID string
peerID string
keepalive time.Duration
chaincodeLogLevel string
shimLogLevel string
logFormat string
executetimeout time.Duration
userRunsCC bool
peerTLS bool
}// runningChaincodes contains maps of chaincodeIDs to their chaincodeRTEs
type runningChaincodes struct {
sync.RWMutex
// chaincode environment for each chaincode
chaincodeMap map[string]*chaincodeRTEnv
//mark the starting of launch of a chaincode so multiple requests
//do not attempt to start the chaincode at the same time
launchStarted map[string]bool
}
type chaincodeRTEnv struct {
handler *Handler
}Last updated