更新Hyperledger Fabric中的Channel后无法加入Anchor Peer

问题描述 投票:2回答:1

区块链网络最初有3个组织。我想在网络中添加另一个组织。因此,我首先更新包含该组织所需信息的通道配置。在更新之后,不可能使用“对等信道更新”将组织的锚点对等体加入到信道。显示以下错误消息:

错误:出现意外状态:BAD_REQUEST - 错误授权更新:错误验证ReadSet:readset期望键[Group] / Channel / Application版本1,但获得版本2

为了准备网络以加入新对等体,使用“对等信道获取配置”来检索和修改最后的配置块。但是为了添加另一个锚点对等体,需要创建块,其由“对等信道获取0”检索。

根据我的理解,错误出现是因为创建块的版本号在第一次更新后没有增加。

我怎样才能添加锚点同伴?如何解决冲突版本的问题?

hyperledger-fabric hyperledger ibm-blockchain
1个回答
1
投票

不确定,如果你能够解决这个问题,因为我发现它很老了。

这是我的2美分,在这种情况下,我们将不得不更新第四个组织的Anchor同行。

如果您的渠道工件中没有Org4MSPanchors.tx

configtxgen -profile FourthOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org4MSPanchors.tx -channelID mychannel -asOrg Org2MSP

然后你需要在频道更新后更新相同内容:

peer channel update -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/Org4MSPanchors.tx 

peer channel update -o orderer.example.com:7050 -c mychannel -f ./channel-artifacts/Org4MSPanchors.tx --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem
© www.soinside.com 2019 - 2024. All rights reserved.