【发布时间】:2026-01-22 01:35:01
【问题描述】:
我正在尝试在超级账本结构中安装和部署我自己的系统链代码。我正在使用 v1.3。我遇到了这个答案Hyperledger Fabric System Chaincode Plugin - missing sample。但它特定于 v1.1,现在 importsyscss.go 看起来非常不同。
我尝试按照上面链接中提到的程序进行操作,但对我来说不起作用。
我将myscc.so 文件复制到/opt/lib/ 中。在core.yaml 中也输入了myscc: enable。
未注释
example configuration:
- enabled: true
name: myscc
path: /opt/lib/myscc.so
invokableExternal: true
invokableCC2CC: true
docker restart peer0.org1.example.com
docker logs peer0.org1.example.com
一切运行完美,没有任何错误,但我仍然没有看到任何地方提到myscc 的日志。
【问题讨论】: