【发布时间】:2020-04-09 02:02:23
【问题描述】:
我正在尝试编译来自https://github.com/hyperledger/fabric-chaincode-evm 的 Hyperledger Fabric 打包的 EVM 链代码,但运气不佳
我们需要将它编译为分类帐的 2.0.1 版本,因为这是我们的网络使用的,一切运行良好,我设法使用 go.mod 依赖文件中的 fabric v2.0.0 依赖进行编译,后来使用
拉出缺少的 1.4.0 依赖项(peer、shim)go get github.com/hyperledger/fabric/protos/peer
go get github.com/hyperledger/fabric/core/chaincode/shim
还更改了 integration/vendor/github.com/hyperledger/fabric/protos/common/configuration.proto 从 1 到 2,像这样:
message Capabilities {
map<string, Capability> capabilities = 2;
}
但是,在进行实例化时出现错误:
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg Channel 'evm' has been migrated to the new lifecycle, LSCC is now read-only
我不确定在哪里可以更改标志以使用 EVM 链代码中的新生命周期,我不是围棋专家,所以我最好把这个问题作为一个问题并依赖更多的专家开发人员。
如何升级到新的生命周期?
我想我缺少命令参数来批准网络内所有对等点的链码,我正在尝试
peer lifecycle chaincode approveformyorg -o orderer.example.com:7050 --channelID evm --name evmcc --version ${EVM_VERSION} --init-required --package-id ${PACKAGE_ID} --sequence ${EVM_VERSION} --waitForEvent
但我不知道如何从已安装的链码包中提取包 ID。
提前致谢。
【问题讨论】:
标签: hyperledger-fabric hyperledger ethereum