Documentation ¶
Index ¶
- func DeDeploySysCC(chainID string, syscc *SystemChaincode) error
- func DeDeploySysCCs(chainID string)
- func DeployChainlessSysCCs()
- func DeploySysCCs(chainID string)
- func IsChainlessSysCC(name string) bool
- func IsSysCC(name string) bool
- func MockResetSysCCs(mockSysCCs []*SystemChaincode)
- func RegisterSysCC(syscc *SystemChaincode) error
- func RegisterSysCCs()
- type SystemChaincode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeDeploySysCC ¶
func DeDeploySysCC(chainID string, syscc *SystemChaincode) error
DeDeploySysCC stops the system chaincode and deregisters it from inproccontroller
func DeDeploySysCCs ¶
func DeDeploySysCCs(chainID string)
DeDeploySysCCs is used in unit tests to stop and remove the system chaincodes before restarting them in the same process. This allows clean start of the system in the same process
func DeployChainlessSysCCs ¶
func DeployChainlessSysCCs()
DeployChainlessSysCCs is the hook for deploying chainless system chaincodes these chaincodes cannot make any ledger calls
func DeploySysCCs ¶
func DeploySysCCs(chainID string)
DeploySysCCs is the hook for system chaincodes where system chaincodes are registered with the fabric note the chaincode must still be deployed and launched like a user chaincode will be
func IsChainlessSysCC ¶
IsChainlessSysCC returns true if the name matches a chainless system chaincode's system chaincode names are system, chain wide
func IsSysCC ¶
IsSysCC returns true if the name matches a system chaincode's system chaincode names are system, chain wide
func MockResetSysCCs ¶
func MockResetSysCCs(mockSysCCs []*SystemChaincode)
MockResetSysCCs restore orig system ccs - is used only for testing
func RegisterSysCC ¶
func RegisterSysCC(syscc *SystemChaincode) error
RegisterSysCC registers the given system chaincode with the peer
func RegisterSysCCs ¶
func RegisterSysCCs()
RegisterSysCCs is the hook for system chaincodes where system chaincodes are registered with the fabric note the chaincode must still be deployed and launched like a user chaincode will be
Types ¶
type SystemChaincode ¶
type SystemChaincode struct { //Global, once only not tied to chains. Such chaincodes cannot //save state in the ledger. CSCC is an example ChainlessCC bool // Enabled a convenient switch to enable/disable system chaincode without // having to remove entry from importsysccs.go Enabled bool //Unique name of the system chaincode Name string //Path to the system chaincode; currently not used Path string //InitArgs initialization arguments to startup the system chaincode InitArgs [][]byte // Chaincode is the actual chaincode object Chaincode shim.Chaincode }
SystemChaincode defines the metadata needed to initialize system chaincode when the fabric comes up. SystemChaincodes are installed by adding an entry in importsysccs.go
func MockRegisterSysCCs ¶
func MockRegisterSysCCs(mockSysCCs []*SystemChaincode) []*SystemChaincode
MockRegisterSysCCs is used only for testing This is needed to break import cycle
Directories ¶
Path | Synopsis |
---|---|
Package cscc chaincode configer provides functions to manage configuration transactions as the network is being reconfigured.
|
Package cscc chaincode configer provides functions to manage configuration transactions as the network is being reconfigured. |