[FAB-17504] add Organizations.<Org>.OrdererEndpoints and remove Orderer.Addresses (#125)

Description

The use of Orderer.Addresses in configtx.yaml is deprecated, and Organizations.<Org>.OrdererEndpoints should be used instead. Therefore, update all the fabric-samples configtx.yaml files.

Related issues

https://jira.hyperledger.org/browse/FAB-17504

Signed-off-by: xu wu <wuxu1103@163.com>
This commit is contained in:
xu wu 2020-03-20 22:02:44 +07:00 committed by GitHub
parent f3fc08d95f
commit 7f5f5e6c66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 8 deletions

View file

@ -41,6 +41,9 @@ Organizations:
Type: Signature
Rule: "OR('OrdererMSP.admin')"
OrdererEndpoints:
- orderer.example.com:7050
- &Org1
# DefaultOrg defines the organization which is used in the sampleconfig
# of the fabric.git development environment
@ -215,9 +218,6 @@ Orderer: &OrdererDefaults
# Orderer Type: The orderer implementation to start
OrdererType: etcdraft
Addresses:
- orderer.example.com:7050
# Batch Timeout: The amount of time to wait before creating a batch
BatchTimeout: 2s

View file

@ -41,6 +41,9 @@ Organizations:
Type: Signature
Rule: "OR('orderer.admin')"
OrdererEndpoints:
- irs-orderer:7050
- &partya
# DefaultOrg defines the organization which is used in the sampleconfig
# of the fabric.git development environment
@ -324,9 +327,6 @@ Orderer: &OrdererDefaults
# Available types are "solo" and "kafka"
OrdererType: solo
Addresses:
- irs-orderer:7050
# Batch Timeout: The amount of time to wait before creating a batch
BatchTimeout: 2s

View file

@ -41,6 +41,9 @@ Organizations:
Type: Signature
Rule: "OR('OrdererMSP.admin')"
OrdererEndpoints:
- orderer.example.com:7050
- &Org1
# DefaultOrg defines the organization which is used in the sampleconfig
# of the fabric.git development environment
@ -221,8 +224,6 @@ Orderer: &OrdererDefaults
Port: 7050
ClientTLSCert: ../organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt
ServerTLSCert: ../organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt
Addresses:
- orderer.example.com:7050
# Batch Timeout: The amount of time to wait before creating a batch
BatchTimeout: 2s