hyperledger fabric [问题] -- chaincode 的package名必须为main

Bonnie ·
更新时间:2024-11-14
· 963 次阅读

chaincode instantiate 出错:

2019-12-17 03:04:17.548 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: API error (400): OCI runtime create failed: container_linux.go:344: starting container process caused "exec: \"chaincode\": executable file not found in $PATH": unknown

查stackoverflow找到答案,是写代码的时候不小心把package名改了,链码文件报名需要是

package main

(完)


作者:多多-江北残刀



main Chaincode hyperledger package fabric

需要 登录 后方可回复, 如果你还没有账号请 注册新账号