我在Hyperledger Fabric v1.0上工作,并希望让Getting Setup在多个主机上运行.现在,2会很棒.
这是我想要做的:
我在第3步遇到了问题.我认为频道创建有效,但在我的同行日志中,我对3个对等体有相同的警告:
Remote endpoint claims to be a different peer, expected [host1 IP:8051] but got [172.17.0.4:7051]
Failed obtaining connection for 172.31.9.126:8051, PKIid:[49 55 50 ...] reason: Authentication failure
Run Code Online (Sandbox Code Playgroud)
看起来他们无法相互沟通.知道问题出在哪里?
我仍然尝试了我的第4步,但我不能部署它,除非我从config.json中删除host2:peer1.即便如此,我只能从host1:peer0查询,而不是host1:peer2.
以下是我用来设置网络的命令:
主持人1:订货人
docker run --rm -it --name orderer -p 8050:7050
-e ORDERER_GENERAL_LEDGERTYPE=ram
-e ORDERER_GENERAL_BATCHTIMEOUT=10s
-e ORDERER_GENERAL_BATCHSIZE_MAXMESSAGECOUNT=10
-e ORDERER_GENERAL_MAXWINDOWSIZE=1000
-e ORDERER_GENERAL_ORDERERTYPE=solo
-e ORDERER_GENERAL_LOGLEVEL=debug
-e ORDERER_GENERAL_LISTENADDRESS=0.0.0.0
-e ORDERER_GENERAL_LISTENPORT=7050
-e ORDERER_RAMLEDGER_HISTORY_SIZE=100
sfhackfest22017/fabric-orderer:x86_64-0.7.0-snapshot-c7b3fe0 orderer
Run Code Online (Sandbox Code Playgroud)
Host1:Peer0
docker run --rm …Run Code Online (Sandbox Code Playgroud)