Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeployUserCC ¶
func DeployUserCC(chaincodeData []byte, spec *pb.ChaincodeSpec, chainID string, usrcc *UserChaincode, txid string, txsim rwset.TxSimulator, timeout time.Duration) error
func GetUserCCPayload ¶
func GetUserCCPayload(chainID string, usrcc *UserChaincode) (payload []byte, err error)
func StopUserCC ¶
Types ¶
type UserChaincode ¶
type UserChaincode struct { Name string //Unique name of the chaincode Path string //Path to the chaincode; currently not used Version string //chainCode Version InitArgs [][]byte //InitArgs initialization arguments to startup the chaincode Chaincode shim.Chaincode // Chaincode is the actual chaincode object InvokableCC2CC bool //InvokableCC2CC keeps track of whether this chaincode Enabled bool //Enabled a convenient switch to enable/disable chaincode }
func RecoverChainCodeFromDb ¶
func RecoverChainCodeFromDb(spec *pb.ChaincodeSpec, chainID string, templateId []byte) (*UserChaincode, []byte, error)
Click to show internal directories.
Click to hide internal directories.