Fabric 1.4.1 + Raft 的连接配置文件
Conection profile for Fabric 1.4.1 + Raft
我正在尝试新版本的 fabric 1.4.1,并想使用 Raft 作为我的共识算法我遵循了 byfn 教程中的所有步骤。
但是,我不明白如何配置 connection.json 配置文件以包含新的排序器以供以后在 composer 上使用。
你能告诉我吗?
这是具有 1 个对等点、1 个 CA 和 5 节点 Raft 排序服务的连接配置文件示例:
{
"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>"
}
}
}
}
我正在尝试新版本的 fabric 1.4.1,并想使用 Raft 作为我的共识算法我遵循了 byfn 教程中的所有步骤。
但是,我不明白如何配置 connection.json 配置文件以包含新的排序器以供以后在 composer 上使用。
你能告诉我吗?
这是具有 1 个对等点、1 个 CA 和 5 节点 Raft 排序服务的连接配置文件示例:
{
"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>"
}
}
}
}