Как найти идентификатор чейнкода в ткани?

Как узнать идентификатор чейнкода после выполнения команд peer chaincode install и peer chaincode instantiate.

Во время работы peer chaincode query мне нужно передать идентификатор цепочки. В противном случае я получаю эту ошибку в одноранговой консоли:

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

person Narayan Prusty    schedule 08.04.2017    source источник
comment
Я получил аналогичную ошибку, когда запросил удаленный узел. Я также разместил вопрос stackoverflow.com/questions /43301866/   -  person Ko Ohhashi    schedule 09.04.2017
comment
Дайте мне знать, когда вы найдете решение для этого.   -  person Narayan Prusty    schedule 09.04.2017


Ответы (1)


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

опция -n или --name, которую вы используете, является идентификатором чейнкода.

person Dhyey Shah    schedule 12.04.2017