在進行智能合約實例化的階段出錯
发布于 6 个月前 作者 xx900221 323 次浏览 来自 fabric

root@5ddcb9009397:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n mychannel -c ‘{“Args”:[“init”,“A”,“10”,“B”,“10”]}’ -P “OR (‘Org1MSP.member’)” -v 1.0 2019-01-29 14:54:21.578 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP 2019-01-29 14:54:21.580 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity 2019-01-29 14:54:21.582 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc 2019-01-29 14:54:21.584 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc 2019-01-29 14:54:21.585 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 005 java chaincode disabled 2019-01-29 14:54:21.586 UTC [msp/identity] Sign -> DEBU 006 Sign: plaintext: 0AAB070A6708031A0C089DD2C1E20510…314D53500A04657363630A0476736363 2019-01-29 14:54:21.587 UTC [msp/identity] Sign -> DEBU 007 Sign: digest: 73CA4A0E07AD77C67DC7C590E2FE9042744BC6FB090BE8C122D6DAE4D9DA8830 Error: Error endorsing chaincode: rpc error: code = Unknown desc = error starting container: API error (404): {“message”:“network aberic_default not found”}

	Usage:
	  peer chaincode instantiate [flags]
	
	Flags:
	  -C, --channelID string            The channel on which this command should be executed
		  --collections-config string   The file containing the configuration for the chaincode's collection
	  -c, --ctor string                 Constructor message for the chaincode in JSON format (default "{}")
	  -E, --escc string                 The name of the endorsement system chaincode to be used for this chaincode
	  -l, --lang string                 Language the chaincode is written in (default "golang")
	  -n, --name string                 Name of the chaincode
	  -P, --policy string               The endorsement policy associated to this chaincode
	  -v, --version string              Version of the chaincode specified in install/instantiate/upgrade commands
	  -V, --vscc string                 The name of the verification system chaincode to be used for this chaincode
	
	Global Flags:
		  --cafile string                       Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint
		  --certfile string                     Path to file containing PEM-encoded X509 public key to use for mutual TLS communication with the orderer endpoint
		  --clientauth                          Use mutual TLS when communicating with the orderer endpoint
		  --keyfile string                      Path to file containing PEM-encoded private key to use for mutual TLS communication with the orderer endpoint
		  --logging-level string                Default logging level and overrides, see core.yaml for full syntax
	  -o, --orderer string                      Ordering service endpoint
		  --ordererTLSHostnameOverride string   The hostname override to use when validating the TLS connection to the orderer.
		  --tls                                 Use TLS when communicating with the orderer endpoint
		  --transient string                    Transient map of arguments in JSON encoding

請問各位高手這問題是出在哪…

回到顶部