问题1
根据2.3官方文档,创建通道时进行到如下步骤
osnadmin channel list -o localhost:7053 --ca-file "$ORDERER_CA" --client-cert "$ORDERER_ADMIN_TLS_SIGN_CERT" --client-key "$ORDERER_ADMIN_TLS_PRIVATE_KEY"
运行结果
osnadmin: error: parsing arguments: reading orderer CA certificate: open /home/geneg/twonodes/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem: no such file or directory. Try --help
原因是osnadmin通道命令与订购节点使用相互TLS通信,需要提供以下证书:
--ca-file
: Specify the location and file name of the orderer organization TLS CA root certificate.--client-cert
: Specify the location and file name of admin client signed certificate from the TLS CA.--client-key
: Specify the location and file name of admin client private key from the TLS CA.
由于我是再新建的/home/geneg/twonodes下进行手动搭建生产网络,之间安装的fabric v2.3位置在/usr/local/test/下,进入/usr/local/test/fabric-samples/test-network中,存在organizations文件夹,于是将其复制到/home/geneg/twonodes中。再次运行之前出错的指令,结果如下而官方给出的运行成功结果为
问题2
这个是脏数据问题,只能重新来过了5555
仍在解决
可以看到,官方的"consensusRelation"为"consenter"(共识关系为理事会),status值为onboarding,并且height值为1。而我自己生成的是"follower",height值为0。