Skip to content

Commit 5b3edfc

Browse files
committed
[FAB-2480] Improve orderer.yaml formatting & text
https://jira.hyperledger.org/browse/FAB-2480 We use the ### lines to signal the maximum line width (80 characters) but miraculously, lines exceeding that limit keep creeping in. This changeset fixes that, plus a bunch of inconsistencies of the copy-editing kind. Filed under nit for sure. Change-Id: I816dbb1bf52a5fcce43dc39741f2cfd533358ea0 Signed-off-by: Kostas Christidis <[email protected]>
1 parent 4aa759b commit 5b3edfc

File tree

1 file changed

+43
-41
lines changed

1 file changed

+43
-41
lines changed

orderer/orderer.yaml

+43-41
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
#
44
# Orderer Configuration
55
#
6-
# - This controls the type and configuration for the orderer which is started
7-
# - This controls the type and configuration for the ordererledger if needed
6+
# - This controls the type and configuration of the orderer.
87
#
98
################################################################################
109
General:
@@ -13,13 +12,13 @@ General:
1312
# Available types are "ram", "file".
1413
LedgerType: ram
1514

16-
# Listen address: The IP on which to bind to listen
15+
# Listen address: The IP on which to bind to listen.
1716
ListenAddress: 127.0.0.1
1817

19-
# Listen port: The port on which to bind to listen
18+
# Listen port: The port on which to bind to listen.
2019
ListenPort: 7050
2120

22-
# TLS: TLS settings for the GRPC server
21+
# TLS: TLS settings for the GRPC server.
2322
TLS:
2423
Enabled: false
2524
PrivateKey:
@@ -28,8 +27,8 @@ General:
2827
ClientAuthEnabled: false
2928
ClientRootCAs:
3029

31-
# Log Level: The level at which to log. This accepts logging specifications
32-
# per fabric/docs/Setup/logging-control.md
30+
# Log Level: The level at which to log. This accepts logging specifications
31+
# per: fabric/docs/Setup/logging-control.md
3332
LogLevel: info
3433

3534
# Genesis method: The method by which to retrieve/generate the genesis
@@ -39,93 +38,93 @@ General:
3938
# block.
4039
GenesisMethod: provisional
4140

42-
# Genesis profile: The profile to use when using the provisional GenesisMethod
43-
# See the configtx.yaml file for the descriptions of the available profiles
41+
# Genesis profile: The profile to use when using the provisional
42+
# GenesisMethod, See the configtx.yaml file for the descriptions of the
43+
# available profiles.
4444
GenesisProfile: SampleSingleMSPSolo
4545

4646
# Genesis file: The file containing the genesis block. Used by the orderer
4747
# when GenesisMethod is set to "file".
4848
GenesisFile: ./genesisblock
4949

50-
# LocalMSPDir is where to find the crypto material needed for signing in the orderer
51-
# It is set relative here as a default for dev environments but should be changed to the
52-
# real location in production
50+
# LocalMSPDir is where to find the crypto material needed for signing in the
51+
# orderer. It is set relative here as a default for dev environments but
52+
# should be changed to the real location in production.
5353
LocalMSPDir: msp/sampleconfig
5454

55-
# LocalMSPID is the identity to register the local MSP material with the MSP manager
56-
# ----!!!!IMPORTANT!!!-!!!IMPORTANT!!!-!!!IMPORTANT!!!!----
57-
# Deployers need to change the value of the localMspId string.
58-
# In particular, the name of the local MSP ID of a orderer needs
59-
# to match the name of one of the MSPs in the ordering system channel
55+
# LocalMSPID is the identity to register the local MSP material with the MSP
56+
# manager. IMPORTANT: Deployers need to change the value of the localMspId
57+
# string. In particular, the name of the local MSP ID of an orderer needs to
58+
# match the name of one of the MSPs in the ordering system channel.
6059
LocalMSPID: DEFAULT
6160

6261
# Enable an HTTP service for Go "pprof" profiling as documented at:
6362
# https://golang.org/pkg/net/http/pprof
6463
Profile:
6564
Enabled: false
6665
Address: 0.0.0.0:6060
67-
68-
# BCCSP (Blockchain crypto provider): Select which crypto implementation or
69-
# library to use
66+
67+
# BCCSP: Select which crypto implementation or library to use for the
68+
# blockchain crypto service provider.
7069
BCCSP:
7170
Default: SW
7271
SW:
7372
Hash: SHA3
7473
Security: 256
75-
# Location of Key Store. If this is unset, a temporary location will
76-
# be chosen using 'LocalMSPDir'/keystore
77-
FileKeyStore:
78-
KeyStore:
74+
# Location of key store. If this is unset, a location will be
75+
# chosen using: 'LocalMSPDir'/keystore
76+
FileKeyStore:
77+
KeyStore:
7978

8079
################################################################################
8180
#
8281
# SECTION: RAM Ledger
8382
#
84-
# - This section applies to the configuration of the RAM ledger
83+
# - This section applies to the configuration of the RAM ledger.
8584
#
8685
################################################################################
8786
RAMLedger:
8887

89-
# History Size: The number of blocks that the RAM ledger is set to retain
88+
# History Size: The number of blocks that the RAM ledger is set to retain.
9089
HistorySize: 1000
9190

9291

9392
################################################################################
9493
#
9594
# SECTION: File Ledger
9695
#
97-
# - This section applies to the configuration of the file ledger
96+
# - This section applies to the configuration of the file ledger.
9897
#
9998
################################################################################
10099
FileLedger:
101100

102-
# Location: The directory to store the blocks in
101+
# Location: The directory to store the blocks in.
103102
# NOTE: If this is unset, a temporary location will be chosen using
104-
# the prefix specified by Prefix
103+
# the prefix specified by Prefix.
105104
Location:
106105

107-
# The prefix to use when generating a ledger directory in temporary space
108-
# Otherwise, this value is ignored
106+
# The prefix to use when generating a ledger directory in temporary space.
107+
# Otherwise, this value is ignored.
109108
Prefix: hyperledger-fabric-ordererledger
110109

111110
################################################################################
112111
#
113112
# SECTION: Kafka
114113
#
115-
# - This section applies to the configuration of the Kafka-backed orderer
114+
# - This section applies to the configuration of the Kafka-based orderer.
116115
#
117116
################################################################################
118117
Kafka:
119118

120-
# Retry: What to do if none of the Kafka brokers are available
119+
# Retry: What to do if none of the Kafka brokers are available.
121120
Retry:
122121
# The producer should attempt to reconnect every <Period>
123122
Period: 3s
124123
# Panic if <Stop> has elapsed and no connection has been established
125124
Stop: 60s
126125

127126
# Verbose: Turn on logging for sarama, the client library that we use to
128-
# interact with the Kafka cluster
127+
# interact with the Kafka cluster.
129128
Verbose: false
130129

131130
# TLS: TLS settings for the Kafka client
@@ -134,11 +133,11 @@ Kafka:
134133
# Enabled: set to true enable TLS
135134
Enabled: false
136135

137-
# PrivateKey: PEM encoded private key orderer will use for authentication.
136+
# PrivateKey: PEM-encoded private key orderer will use for authentication.
138137
PrivateKey:
139138
#File: uncomment to read PrivateKey from a file
140139

141-
# Certificate: PEM encoded signed public key vertificate orderer will use
140+
# Certificate: PEM-encoded signed public key vertificate orderer will use
142141
# for authentication.
143142
Certificate:
144143
#File: uncomment to read Certificate from a file
@@ -150,12 +149,13 @@ Kafka:
150149

151150
################################################################################
152151
#
153-
# SECTION: Sbft local
152+
# SECTION: SBFT Local
154153
#
155-
# - This section applies to the configuration of the Sbft-backed orderer
154+
# - This section applies to the configuration of the SBFT-based orderer.
156155
#
157156
################################################################################
158157
SbftLocal:
158+
159159
# Address to use for SBFT internal communication
160160
PeerCommAddr: ":6101"
161161
CertFile: "sbft/testdata/cert1.pem"
@@ -167,12 +167,14 @@ SbftLocal:
167167
#
168168
# SECTION: Genesis
169169
#
170-
# - This section is pending removal but is left to support Sbft
171-
# to be migrated to genesis.yaml
170+
# - This section is pending removal but is left to support SBFT
171+
# to be migrated to configtx.yaml.
172172
#
173173
################################################################################
174174
Genesis:
175-
# Deprecated Batch Timeout: The amount of time to wait before creating a batch
175+
176+
# Deprecated Batch Timeout: The amount of time to wait before creating a
177+
# batch.
176178
DeprecatedBatchTimeout: 10s
177179

178180
# DeprecatedBatchSize: The absolute maximum number of bytes allowed for

0 commit comments

Comments
 (0)