Fabric python SDK 中通道的一些问题

Some problems about channel in Fabric python SDK

我尝试按照 Hyperledger Fabric python SDK 的教程进行操作,但在创建通道时遇到问题。我得到的错误如下所示:

Exception: [status: BAD_REQUEST info: "error applying config update to existing channel 'businesschannel': error authorizing update: error validating ReadSet: proposed update requires that key [Group] /Channel/Application be at version 0, but it is currently at version 1" ]

我该如何解决?

问题是您在创建新频道之前没有删除之前的配置,即 businesschannel。请参阅错误 error applying config update to existing channel 'businesschannel 中的这一行。如果您使用的是 docker,请尝试以下命令:-

  1. docker rm -f $(docker ps -aq)
  2. docker network prune -f
  3. docker volume prune -f