Je pourrais exécuter peer chaincode instantiate
plusieurs fois avec succès, il devrait le retourner exister, mais non. Pourquoi?Pourquoi chaincode instancier instancier plusieurs fois avec succès
logs after instantiate command
étapes:
de my github project chaincode-docker-devmode, je copie msp (peer et orderer utiliser ensemble), genesis.block, helloch.tx, docker-Compose-avec- couch.yaml et ainsi de suite forme autre endroit, ça devrait aller. Quand j'Execute:
docker-compose -f docker-compose-with-couch.yaml up
pairs, donneur d'ordre, couchdb0, cli début puis cli exécuter script.sh
#script.sh content
peer channel create -c helloch -f helloch.tx -o orderer:7050
peer channel join -b helloch.block
je simulent terminal à l'aide ambience cli au chemin actuel chaincode-docker-devmode en suivant :
#cli simulation, $pwd is the chaincode-docker-devmode path
export CORE_VM_ENDPOINT=unix:///var/run/run/docker.sock
export CORE_LOGGING_LEVEL=DEBUG
export CORE_PEER_ID=cli
export CORE_PEER_ADDRESS=127.0.0.1:7051
export CORE_PEER_LOCALMSPID=DEFAULT
export CORE_PEER_MSPCONFIGPATH=$pwd/msp
bash
Quand j'exécuter peer channel list
Il pourrait spectacles que j'ai rejoindre Hclloch
canal. Alors j'Execute:
peer chaincode install -n hello -v 1.0 -l java -p chaincode/hsl-hsl-user-guide-examples-v14/mytest
peer chaincode instantiate -o 127.0.0.1:7050 -C helloch -n hello -v 1.0 -l java -c "{\"Args\":[\"init\",\"a\", \"100\", \"b\",\"100\"]}"
Mais je peux instancier plusieurs fois et le journal ne renvoie pas l'erreur as same as above instantiate logs, en fait il n'instancier pas avec succès, pourquoi?
Merci beaucoup, vous avez raison! Je suis très excitant. –
Bienvenue :) et je crois que cela résout aussi votre autre question: https://stackoverflow.com/questions/46035198/why-chaincode-instantiate-success-but-query-failed –
Oui, ils sont les mêmes problèmes. Merci, nous pouvons communiquer et puis-je avoir votre email? –