我的第一个网络由fn.sh生成,configtxgen的出现无法生成创世块。
我的错误如下:

[root@demo first-network]# ./byfn.sh generate
Generating certs and genesis block for with channel 'mychannel' and CLI timeout of '10' seconds and CLI delay of '3' seconds
Continue? [Y/n] y
proceeding ...
/storage/u01/hyperledger/bin/cryptogen

##########################################################
##### Generate certificates using cryptogen tool #########
##########################################################
org1.example.com
org2.example.com

/storage/u01/hyperledger/bin/configtxgen
##########################################################
#########  Generating Orderer Genesis block ##############
##########################################################
2018-02-26 11:00:08.152 CST [common/configtx/tool] main -> INFO 001 Loading configuration
2018-02-26 11:00:08.155 CST [common/configtx/tool/localconfig] Load -> CRIT 002 Error unmarshaling config into struct:  4 error(s) decoding:

* '' has invalid keys: capabilities
* 'Profiles[TwoOrgsChannel].Application' has invalid keys: Capabilities
* 'Profiles[TwoOrgsOrdererGenesis]' has invalid keys: Capabilities
* 'Profiles[TwoOrgsOrdererGenesis].Orderer' has invalid keys: Capabilities
Failed to generate orderer genesis block...
我的 docker 版本:
Docker version 17.03.1-ce
我去的版本:
go version go1.8.3 linux/amd64
我的操作系统版本:
centos 7.2
我的configtx.yaml如下图所示:

最佳答案

使用1.1.0(Not 1.0.6)-> OK重新下载特定于平台的二进制文件

curl -sSL [下载脚本] [1] | bash -s 1.1.0

关于hyperledger-fabric - hyperledger fabric无法生成订单生成块,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/48985776/

10-16 21:52