Skip to content

Commit

Permalink
[FAB-17504] add Organizations.<Org>.OrdererEndpoints and remove Order…
Browse files Browse the repository at this point in the history
…er.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>
  • Loading branch information
wuxuer committed Mar 20, 2020
1 parent f3fc08d commit 7f5f5e6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions first-network/configtx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions interest_rate_swaps/network/configtx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
5 changes: 3 additions & 2 deletions test-network/configtx/configtx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7f5f5e6

Please sign in to comment.