forked from datlv/hyperledger-fabric-bftsmart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorderer.bak
201 lines (169 loc) · 6.89 KB
/
orderer.bak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
---
################################################################################
#
# Orderer Configuration
#
# - This controls the type and configuration of the orderer.
#
################################################################################
General:
# Ledger Type: The ledger type to provide to the orderer.
# Two non-production ledger types are provided for test purposes only:
# - ram: An in-memory ledger whose contents are lost on restart.
# - json: A simple file ledger that writes blocks to disk in JSON format.
# Only one production ledger type is provided:
# - file: A production file-based ledger.
LedgerType: ram
# Listen address: The IP on which to bind to listen.
ListenAddress: 127.0.0.1
# Listen port: The port on which to bind to listen.
ListenPort: 7050
# TLS: TLS settings for the GRPC server.
TLS:
Enabled: false
PrivateKey:
Certificate:
RootCAs:
ClientAuthEnabled: false
ClientRootCAs:
# Log Level: The level at which to log. This accepts logging specifications
# per: fabric/docs/Setup/logging-control.md
LogLevel: info
# Genesis method: The method by which to retrieve/generate the genesis
# block. Available values are "provisional", "file". Provisional utilizes
# the parameters in the Genesis section to dynamically generate a new
# genesis block. File uses the file provided by GenesisFile as the genesis
# block.
GenesisMethod: provisional
# Genesis profile: The profile to use when using the provisional
# GenesisMethod, See the configtx.yaml file for the descriptions of the
# available profiles.
GenesisProfile: SampleInsecureSolo
# Genesis file: The file containing the genesis block. Used by the orderer
# when GenesisMethod is set to "file".
GenesisFile: ./genesisblock
# LocalMSPDir is where to find the crypto material needed for signing in the
# orderer. It is set relative here as a default for dev environments but
# should be changed to the real location in production.
LocalMSPDir: msp/sampleconfig
# LocalMSPID is the identity to register the local MSP material with the MSP
# manager. IMPORTANT: Deployers need to change the value of the localMspId
# string. In particular, the name of the local MSP ID of an orderer needs to
# match the name of one of the MSPs in the ordering system channel.
LocalMSPID: DEFAULT
# Enable an HTTP service for Go "pprof" profiling as documented at:
# https://golang.org/pkg/net/http/pprof
Profile:
Enabled: false
Address: 0.0.0.0:6060
# BCCSP: Select which crypto implementation or library to use for the
# blockchain crypto service provider.
BCCSP:
Default: SW
SW:
# TODO: The default Hash and Security level needs refactoring to be
# fully configurable. Changing these defaults requires coordination
# SHA2 is hardcoded in several places, not only BCCSP
Hash: SHA2
Security: 256
# Location of key store. If this is unset, a location will be
# chosen using: 'LocalMSPDir'/keystore
FileKeyStore:
KeyStore:
################################################################################
#
# SECTION: RAM Ledger
#
# - This section applies to the configuration of the RAM ledger.
#
################################################################################
RAMLedger:
# History Size: The number of blocks that the RAM ledger is set to retain.
HistorySize: 1000
################################################################################
#
# SECTION: File Ledger
#
# - This section applies to the configuration of the file or json ledgers
#
################################################################################
FileLedger:
# Location: The directory to store the blocks in.
# NOTE: If this is unset, a temporary location will be chosen using
# the prefix specified by Prefix.
Location:
# The prefix to use when generating a ledger directory in temporary space.
# Otherwise, this value is ignored.
Prefix: hyperledger-fabric-ordererledger
################################################################################
#
# SECTION: Kafka
#
# - This section applies to the configuration of the Kafka-based orderer.
#
################################################################################
Kafka:
# Retry: What to do if none of the Kafka brokers are available.
Retry:
# The producer should attempt to reconnect every <Period>
Period: 3s
# Panic if <Stop> has elapsed and no connection has been established
Stop: 60s
# Verbose: Turn on logging for sarama, the client library that we use to
# interact with the Kafka cluster.
Verbose: false
# TLS: TLS settings for the Kafka client
TLS:
# Enabled: set to true enable TLS
Enabled: false
# PrivateKey: PEM-encoded private key orderer will use for authentication.
PrivateKey:
#File: uncomment to read PrivateKey from a file
# Certificate: PEM-encoded signed public key vertificate orderer will use
# for authentication.
Certificate:
#File: uncomment to read Certificate from a file
# RootCAs: PEM encoded trusted signer certificates used to validate
# certificates from the Kafka cluster.
RootCAs:
#File: uncomment to read Certificate from a file
################################################################################
#
# SECTION: SBFT Local
#
# - This section applies to the configuration of the SBFT-based orderer.
#
################################################################################
SbftLocal:
# Address to use for SBFT internal communication
PeerCommAddr: ":6101"
CertFile: "sbft/testdata/cert1.pem"
KeyFile: "sbft/testdata/key.pem"
# Directory for SBFT data (persistence)
DataDir: "/tmp"
################################################################################
#
# SECTION: Genesis
#
# - This section is pending removal but is left to support SBFT
# to be migrated to configtx.yaml.
#
################################################################################
Genesis:
# Deprecated Batch Timeout: The amount of time to wait before creating a
# batch.
DeprecatedBatchTimeout: 10s
# DeprecatedBatchSize: The absolute maximum number of bytes allowed for
# the serialized messages in a batch.
DeprecatedBatchSize: 99 MB
# Defines the SBFT parameters when 'sbft' is specified as the 'OrdererType'
SbftShared:
# Number of peers
"N": 1
# Fault tolerance
F: 0
# Timeout of requests (seconds)
RequestTimeoutNsec: 1000000000
# Peers (PeerCommAddr) with the path of their cert
Peers:
":6101": "sbft/testdata/cert1.pem"