我正在尝试Fabric 1.4.1的新版本,并想使用Raft作为我的共识算法,所以我遵循了BYFN教程中的所有步骤。
但是,我不明白如何配置connection.json配置文件以包括新的订购者,以便以后在作曲家中使用。
你能告诉我吗?
答案 0 :(得分:0)
这是一个具有1个对等方,1个CA和5个节点的筏订购服务的连接配置文件的示例:
{
"name": "channel1",
"description": "Network Description",
"version": "1.0.0",
"client": {
"organization": "org1msp"
},
"organizations": {
"org1msp": {
"mspid": "org1msp",
"peers": [
"<Peer IP>:32321"
],
"certificateAuthorities": [
"<CA IP>:31941"
]
}
},
"orderers": {
"<Orderer 1 IP>:31685": {
"url": "grpcs://<Orderer IP>:31685",
"tlsCACerts": {
"pem": "<PEM Cert>"
}
},
"<Orderer 2 IP>:30386": {
"url": "grpcs://<Orderer IP>:30386",
"tlsCACerts": {
"pem": "<PEM Cert>"
}
},
"<Orderer 3 IP>:32522": {
"url": "grpcs://<Orderer IP>:32522",
"tlsCACerts": {
"pem": "<PEM Cert>"
}
},
"<Orderer 4 IP>:31366": {
"url": "grpcs://<Orderer IP>:31366",
"tlsCACerts": {
"pem": "<PEM Cert>"
}
},
"<Orderer 5 IP>:30116": {
"url": "grpcs://<Orderer IP>:30116",
"tlsCACerts": {
"pem": "<PEM Cert>"
}
}
},
"peers": {
"<Peer IP>:32321": {
"url": "grpcs://<Peer IP>:32321",
"tlsCACerts": {
"pem": "<PEM Cert>"
},
"grpcOptions": {
"ssl-target-name-override": "<Peer IP>"
}
}
},
"certificateAuthorities": {
"<CA IP>:31941": {
"url": "https://<CA IP>:31941",
"caName": "ca",
"tlsCACerts": {
"pem": "<PEM Cert>"
}
}
}
}