首页 > 解决方案 > 链码注册失败

问题描述

我试图在多个主机环境中实例化 nodejs 链码并导致链码注册错误。Golang 智能合约在多个主机环境中完美运行。

错误could not assemble transaction. err propseal response was not succesful, error code 500, msg chaincode registration failed: container exiter with 127

对等日志:

2019-11-05 06:03:09.941 UTC [endorser] SimulateProposal -> ERRO 04c [mychannel][6e8f647c] failed to invoke chaincode name:"lscc" , error: container exited with 127
github.com/hyperledger/fabric/core/chaincode.(*RuntimeLauncher).Launch.func1
    /opt/gopath/src/github.com/hyperledger/fabric/core/chaincode/runtime_launcher.go:63
runtime.goexit
    /opt/go/src/runtime/asm_amd64.s:1333
chaincode registration failed

环境变量有什么需要改的吗?

标签: hyperledger-fabrichyperledger-chaincodechaincode

解决方案


您需要设置 CC_SRC_PATH github/chaincode/。


推荐阅读