2017-04-08 3 views
0

peer chaincode installpeer chaincode instantiate 명령을 실행 한 후 체인 코드 ID를 찾는 방법.fabric에서 chaincode id를 찾는 방법은 무엇입니까?

peer chaincode query을 실행하는 동안 chaincode id를 전달해야합니다. 그렇지 않으면 나는 피어 콘솔에서이 오류를 얻고있다 :

ChaincodeId: test_cc does not exist on channel: testchainid(err:chaincode not found test_cc) 
+0

원격 피어를 질의 할 때 비슷한 오류가 발생합니다. 또한 질문을 게시했습니다. http://stackoverflow.com/questions/43301866/transaction-not-found-on-remote-peer –

+0

해결책을 찾았 으면 알려주십시오. –

답변

0
Usage: 
peer chaincode install [flags] 

Flags: 
-h, --help help for install 

Global Flags: 
    --cafile string    Path to file containing PEM-encoded trusted certificate(s) for the ordering endpoint 
    -C, --chainID string    The chain on which this command should be executed (default "testchainid") 
    -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") 
    --logging-level string  Default logging level and overrides, see core.yaml for full syntax 
    -n, --name string    Name of the chaincode 
    -o, --orderer string    Ordering service endpoint 
    -p, --path string    Path to chaincode 
    -P, --policy string    The endorsement policy associated to this chaincode 
    --test.coverprofile string Done (default "coverage.cov") 
    -t, --tid string     Name of a custom ID generation algorithm (hashing and decoding) e.g. sha256base64 
    --tls      Use TLS when communicating with the orderer endpoint 
    -u, --username string   Username for chaincode operations when security is enabled 
    -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 

당신이 chaincode ID입니다 사용 -n 또는 --name 옵션을 선택합니다.