From 70ce148927cc284ae7124d224d515f5812ac70a7 Mon Sep 17 00:00:00 2001 From: bjzhang03 Date: Fri, 13 Sep 2019 16:06:47 +0800 Subject: [PATCH] [FAB-16592] Add the etcdraft into the config This is fix #FAB-16592 Signed-off-by: bjzhang03 Change-Id: If246f455c65403de2edcdc58ff35cde04279950d --- first-network/configtx.yaml | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/first-network/configtx.yaml b/first-network/configtx.yaml index 29c54a8a..a1f6b20b 100644 --- a/first-network/configtx.yaml +++ b/first-network/configtx.yaml @@ -216,7 +216,7 @@ Application: &ApplicationDefaults Orderer: &OrdererDefaults # Orderer Type: The orderer implementation to start - # Available types are "solo" and "kafka" + # Available types are "solo","kafka" and "etcdraft" OrdererType: solo Addresses: @@ -246,6 +246,35 @@ Orderer: &OrdererDefaults Brokers: - 127.0.0.1:9092 + # EtcdRaft defines configuration which must be set when the "etcdraft" + # orderertype is chosen. + EtcdRaft: + # The set of Raft replicas for this network. For the etcd/raft-based + # implementation, we expect every replica to also be an OSN. Therefore, + # a subset of the host:port items enumerated in this list should be + # replicated under the Orderer.Addresses key above. + Consenters: + - Host: orderer.example.com + Port: 7050 + ClientTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt + ServerTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt + - Host: orderer2.example.com + Port: 7050 + ClientTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/server.crt + ServerTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/server.crt + - Host: orderer3.example.com + Port: 7050 + ClientTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/server.crt + ServerTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/server.crt + - Host: orderer4.example.com + Port: 7050 + ClientTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer4.example.com/tls/server.crt + ServerTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer4.example.com/tls/server.crt + - Host: orderer5.example.com + Port: 7050 + ClientTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer5.example.com/tls/server.crt + ServerTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer5.example.com/tls/server.crt + # Organizations is the list of orgs which are defined as participants on # the orderer side of the network Organizations: