fabric 创建通道事务 发生错误 :Error on outputChannelCreateTx : ………… no policies defined

环境介绍

fabric:1.4.0

错误展示这是我报的错误

报错原因

我之前这个虚拟机配置过fabric2.3.2的环境,所说的是指下面的

这里之前配置过的
后来我换了fabric1.4.0,虽然1.4.0的我也有这些,但是忽略了环境变量里之前配置的2.3.2版本的,所以我在1.4.0里用的这些工具还是2.3.2的,就导致了版本不一致报了这个错误

发现这个错误的过程

这个我偶然间查看版本时发现了这个问题
这个我偶然间查看版本时发现了这个问题
我用2.3.2创建创世块的时候没发生错误,但是下一步配置通道事务发生了错误!

# 生成创世区块
configtxgen -profile TwoOrgsOrdererGenesis -channelID testchannel -outputBlock ./channel-artifacts/genesis.block
# 配置通道事务,我就在这块遇到的问题
configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID testchannel

# 生成锚节点配置文件
configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org1MSPanchors.tx -channelID mychannel -asOrg Org1MSP configtxgen -profile TwoOrgsChannel -outputAnchorPeersUpdate ./channel-artifacts/Org2MSPanchors.tx -channelID mychannel -asOrg Org2MSP

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
THE END
分享
二维码
< <上一篇
下一篇>>