1- # ##############################################################################
2- #
3- #
4- # CLI section
5- #
6- # ##############################################################################
7- cli :
8-
9- # The address that the cli process will use for callbacks from chaincodes
10- address : 0.0.0.0:7052
11-
12-
13-
14- # ##############################################################################
15- #
16- # REST section
17- #
18- # ##############################################################################
19- rest :
20-
21- # Enable/disable setting for the REST service. It is recommended to disable
22- # REST service on validators in production deployment and use non-validating
23- # nodes to host REST service
24- enabled : false
25-
26- # The address that the REST service will listen on for incoming requests.
27- address : 0.0.0.0:7050
28-
29- validPatterns :
30-
31- # Valid enrollment ID pattern in URLs: At least one character long, and
32- # all characters are A-Z, a-z, 0-9 or _.
33- enrollmentID : ' ^\w+$'
34-
351# ##############################################################################
362#
373# LOGGING section
@@ -63,14 +29,13 @@ logging:
6329 #
6430 # Developers: Please see fabric/docs/Setup/logging-control.md for more
6531 # options.
66- peer : warning
67-
68- node : info
69- network : warning
70- chaincode : warning
71- version : warning
32+ peer : warning
33+ node : info
34+ network : warning
35+ chaincode : warning
36+ version : warning
7237 protoutils : debug
73- error : warning
38+ error : warning
7439
7540 format : ' %{color}%{time:2006-01-02 15:04:05.000 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{id:03x}%{color:reset} %{message}'
7641
8449 # The Peer id is used for identifying this Peer instance.
8550 id : jdoe
8651
87- # The privateKey to be used by this peer
88- # privateKey: 794ef087680e2494fa4918fd8fb80fb284b50b57d321a31423fe42b9ccf6216047cea0b66fe8365a8e3f2a8140c6866cc45852e63124668bee1daa9c97da0c2a
89-
9052 # The networkId allows for logical seperation of networks
9153 # networkId: dev
9254 # networkId: test
@@ -139,30 +101,19 @@ peer:
139101
140102 # Validator defines whether this peer is a validating peer or not, and if
141103 # it is enabled, what consensus plugin to load
142- validator :
143- enabled : true
144-
145- consensus :
146- # Consensus plugin to use. The value is the name of the plugin, e.g. pbft, noops ( this value is case-insensitive)
147- # if the given value is not recognized, we will default to noops
148- plugin : noops
149-
150- # total number of consensus messages which will be buffered per connection before delivery is rejected
151- buffersize : 1000
104+ events :
105+ # The address that the Event service will be enabled on the validator
106+ address : 0.0.0.0:7053
152107
153- events :
154- # The address that the Event service will be enabled on the validator
155- address : 0.0.0.0:7053
108+ # total number of events that could be buffered without blocking the
109+ # validator sends
110+ buffersize : 100
156111
157- # total number of events that could be buffered without blocking the
158- # validator sends
159- buffersize : 100
160-
161- # milliseconds timeout for producer to send an event.
162- # if < 0, if buffer full, unblocks immediately and not send
163- # if 0, if buffer full, will block and guarantee the event will be sent out
164- # if > 0, if buffer full, blocks till timeout
165- timeout : 10
112+ # milliseconds timeout for producer to send an event.
113+ # if < 0, if buffer full, unblocks immediately and not send
114+ # if 0, if buffer full, will block and guarantee the event will be sent out
115+ # if > 0, if buffer full, blocks till timeout
116+ timeout : 10
166117
167118 # ----!!!!IMPORTANT!!!-!!!IMPORTANT!!!-!!!IMPORTANT!!!!----
168119 # THIS HAS TO BE DONE IN THE CONTEXT OF BOOTSTRAP. TILL THAT
@@ -194,57 +145,14 @@ peer:
194145 # The server name use to verify the hostname returned by TLS handshake
195146 serverhostoverride :
196147
197- # PKI member services properties
198- pki :
199- eca :
200- paddr : localhost:7054
201- tca :
202- paddr : localhost:7054
203- tlsca :
204- paddr : localhost:7054
205- tls :
206- enabled : false
207- rootcert :
208- file : tlsca.cert
209- # The server name use to verify the hostname returned by TLS handshake
210- serverhostoverride :
211-
212- # Peer discovery settings. Controls how this peer discovers other peers
213- discovery :
214-
215- # The root nodes are used for bootstrapping purposes, and generally
216- # supplied through ENV variables
217- # It can be either a single host or a comma separated list of hosts.
218- rootnode :
219-
220- # The duration of time between attempts to asks peers for their connected peers
221- period : 5s
222-
223- # # leaving this in for example of sub map entry
224- # testNodes:
225- # - node : 1
226- # ip : 127.0.0.1
227- # port : 7051
228- # - node : 2
229- # ip : 127.0.0.1
230- # port : 7051
231-
232- # Should the discovered nodes and their reputations
233- # be stored in DB and persisted between restarts
234- persist : true
235-
236- # the period in seconds with which the discovery
237- # tries to reconnect to successful nodes
238- # 0 means the nodes are not reconnected
239- touchPeriod : 6s
240-
241- # the maximum nuber of nodes to reconnect to
242- # -1 for unlimited
243- touchMaxNodes : 100
244-
245- # Path on the file system where peer will store data
148+ # Path on the file system where peer will store data (eg ledger)
246149 fileSystemPath : /var/hyperledger/production
247150
151+ # Path on the file system where peer will find MSP local configurations
152+ mspConfigPath : /var/hyperledger/msp
153+
154+ # Used with Go profiling tools only in none production environment. In
155+ # production, it should be disabled (eg enabled: false)
248156 profile :
249157 enabled : false
250158 listenAddress : 0.0.0.0:6060
290198 max-size : " 50m"
291199 max-file : " 5"
292200 Memory : 2147483648
201+
293202# ##############################################################################
294203#
295204# Chaincode section
@@ -362,8 +271,7 @@ chaincode:
362271 lccc : enable
363272 escc : enable
364273 vscc : enable
365- # ##############################################################################
366- #
274+
367275# ##############################################################################
368276#
369277# Ledger section - ledger configuration encompases both the blockchain
@@ -375,41 +283,6 @@ ledger:
375283 blockchain :
376284
377285 state :
378-
379- # Control the number state deltas that are maintained. This takes additional
380- # disk space, but allow the state to be rolled backwards and forwards
381- # without the need to replay transactions.
382- deltaHistorySize : 500
383-
384- # The data structure in which the state will be stored. Different data
385- # structures may offer different performance characteristics.
386- # Options are 'buckettree', 'trie' and 'raw'.
387- # ( Note:'raw' is experimental and incomplete. )
388- # If not set, the default data structure is the 'buckettree'.
389- # This CANNOT be changed after the DB has been created.
390- dataStructure :
391- # The name of the data structure is for storing the state
392- name : buckettree
393- # The data structure specific configurations
394- configs :
395- # configurations for 'bucketree'. These CANNOT be changed after the DB
396- # has been created. 'numBuckets' defines the number of bins that the
397- # state key-values are to be divided
398- numBuckets : 1000003
399- # 'maxGroupingAtEachLevel' defines the number of bins that are grouped
400- # together to construct next level of the merkle-tree (this is applied
401- # repeatedly for constructing the entire tree).
402- maxGroupingAtEachLevel : 5
403- # 'bucketCacheSize' defines the size (in MBs) of the cache that is used to keep
404- # the buckets (from root upto secondlast level) in memory. This cache helps
405- # in making state hash computation faster. A value less than or equals to zero
406- # leads to disabling this caching. This caching helps more if transactions
407- # perform significant writes.
408- bucketCacheSize : 100
409-
410- # configurations for 'trie'
411- # 'tire' has no additional configurations exposed as yet
412-
413286 # stateDatabase - options are "goleveldb", "CouchDB"
414287 # goleveldb - default state database stored in goleveldb.
415288 # CouchDB - store state database in CouchDB
@@ -436,45 +309,3 @@ security:
436309
437310 # Can be SHA2 or SHA3.
438311 hashAlgorithm : SHA2
439-
440- # ###############################################################################
441- #
442- # SECTION: STATETRANSFER
443- #
444- # - This applies to recovery behavior when the replica has detected
445- # a state transfer is required
446- #
447- # - This might happen:
448- # - During a view change in response to a faulty primary
449- # - After a network outage which has isolated the replica
450- # - If the current blockchain/state is determined to be corrupt
451- #
452- # ###############################################################################
453- statetransfer :
454-
455- # Should a replica attempt to fix damaged blocks?
456- # In general, this should be set to true, setting to false will cause
457- # the replica to panic, and require a human's intervention to intervene
458- # and fix the corruption
459- recoverdamage : true
460-
461- # The number of blocks to retrieve per sync request
462- blocksperrequest : 20
463-
464- # The maximum number of state deltas to attempt to retrieve
465- # If more than this number of deltas is required to play the state up to date
466- # then instead the state will be flagged as invalid, and a full copy of the state
467- # will be retrieved instead
468- maxdeltas : 200
469-
470- # Timeouts
471- timeout :
472-
473- # How long may returning a single block take
474- singleblock : 2s
475-
476- # How long may returning a single state delta take
477- singlestatedelta : 2s
478-
479- # How long may transferring the complete state take
480- fullstate : 60s
0 commit comments