【发布时间】:2020-12-15 09:13:12
【问题描述】:
环境:
- MacOS:10.13.6
- Golang:1.11.8
- Hyperledger Fabric:1.4
- Java:1.8
说明:
我尝试运行official JavaSDK Fabric app example。
我可以使用默认配置正常部署和运行应用程序。
然后我对configtx.yaml做一些修改(只是一些关于生成块的规则)并生成二进制工具configtxgen,然后我使用:
./configtxgen -profile TwoOrgsOrdererGenesis -outputBlock genesis.block./configtxgen -profile TwoOrgsChannel -outputCreateChannelTx channel.tx -channelID mychannel
重新生成channel.tx 和genesis.block 的命令。
我使用这些新文件启动fabric网络,按照this page的步骤,但是在创建通道时出现如下错误:
*org.hyperledger.fabric.sdk.exception.TransactionException: Channel mychannel, send transaction failed on orderer OrdererClient{id: 4, channel: mychannel, name: orderer.example.com, url: grpc://localhost:7050}. Reason: Channel mychannel orderer orderer.example.com status returned failure code 400 (BAD_REQUEST) during orderer next
Caused by: org.hyperledger.fabric.sdk.exception.TransactionException: Channel mychannel orderer orderer.example.com status returned failure code 400 (BAD_REQUEST) during orderer next*
orderer 容器的日志说:
2020-08-26 10:25:33.469 UTC [orderer.common.broadcast] ProcessMessage -> WARN 009 [channel: mychannel] Rejecting broadcast of config message from 192.168.0.1:56440 because of error: error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: attempted to set key [Value] /Channel/Application/Org1MSP/AnchorPeers to version 1, but key does not exist
有人知道解决办法吗?
【问题讨论】:
标签: hyperledger-fabric hyperledger