Re: 答复: [Hyperledger Fabric] example of system plugin not work

Huijian
 

Hi

 

You should build with “pluginsenabled” from source code, since the official image isn’t built with this switch on.

Please refer to https://jira.hyperledger.org/browse/FAB-7710

 

Best Regards

 

发件人: fabric@... [mailto:fabric@...] 代表 XIaoguang Wang
发送时间: 201921 18:29
收件人: hyperledger-fabric
主题: [Hyperledger Fabric] example of system plugin not work

 

Hi  experts

 

Has anyone deployed the official system plugin example under fabric 1.4 source codes folder(github.com/hyperledger/fabric/examples/plugins/scc) successfully?

 

I built the system chaincode plugin (by go build -buildmode=plugin) successfully and config peer node configuration core.yaml according to official  guide as below.

 

But the system chaincode plugin is not loaded during peer startup.

 

BR

Xiaoguang

 

 

Configuring Plugins

Plugins are configured in the chaincode.systemPlugin section in core.yaml:

chaincode:
  systemPlugins:
    - enabled: true
      name: mysyscc
      path: /opt/lib/syscc.so
      invokableExternal: true
      invokableCC2CC: true

A system chaincode must also be whitelisted in the chaincode.system section in core.yaml:

chaincode:
  system:
    mysyscc: enable

 

Join fabric@lists.hyperledger.org to automatically receive all group messages.