实例化map.go时的Hyperledger错误

时间:2019-01-29 15:42:28

标签: hyperledger

我无法在超级账本网络上实例化链码。这是错误:

docker exec -e "CORE_PEER_TLS_ENABLED=true" \
-e "CORE_PEER_TLS_ROOTCERT_FILE=/opt/home/blockchain-tls-chain.pem" \
-e "CORE_PEER_LOCALMSPID=$MSP" \
-e "CORE_PEER_MSPCONFIGPATH=$MSP_PATH" \
-e "CORE_PEER_ADDRESS=$PEER" \
cli peer chaincode instantiate \
-o $ORDERER -C mychannel -n mapchaincode -v v0 \
-c '{"Args":[]}' \
--cafile /opt/home/managedblockchain-tls-chain.pem --tls
2019-01-29 10:34:18.718 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc
2019-01-29 10:34:18.718 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc
Error: could not assemble transaction, err Proposal response was not successful, 
error code 500, 
msg failed to execute transaction 03ded29a4bc6edd45c0c721549b849271b7d2bc90f476814681f63b1ba05d9cd: 
error starting container: 
error starting container: 
Failed to generate platform-specific docker build: 
Error returned from build: 
1 "can't load package: package github.com/map/go: 
build constraints exclude all Go files in /chaincode/input/src/github.com/map/go
    "

我的链码位于cli docker内部的/opt/gopath/src/github.com/map/go/map.go中。

我能够实例化其他代码,例如blockchain_example02。

任何有关如何实例化或修复此500错误的帮助指针都将提供很大的帮助。

〜阿爸

0 个答案:

没有答案