This repository has been archived by the owner on Apr 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
/
configtx.yaml.template
160 lines (132 loc) · 5.93 KB
/
configtx.yaml.template
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
---
################################################################################
#
# Profiles
#
# - Different configuration profiles may be encoded here to be specified
# as parameters to the configtxgen tool. The profiles which specify consortiums
# are to be used for generating the orderer genesis block. With the correct
# consortium members defined in the orderer genesis block, channel creation
# requests may be generated with only the org member names and a consortium name
#
################################################################################
Profiles:
# SampleSingleMSPSolo defines a configuration which uses the Solo orderer,
# and contains a single MSP definition (the MSP sampleconfig).
# The Consortium SampleConsortium has only a single member, SampleOrg
Genesis:
Orderer:
<<: *OrdererDefaults
Organizations:
- *OrdererOrg
Consortiums:
SampleConsortium:
Organizations:
- *PeerOrg
Channels:
Consortium: SampleConsortium
Application:
<<: *ApplicationDefaults
Organizations:
- *PeerOrg
################################################################################
#
# Section: Organizations
#
# - This section defines the different organizational identities which will
# be referenced later in the configuration.
#
################################################################################
Organizations:
# SampleOrg defines an MSP using the sampleconfig. It should never be used
# in production but may be used as a template for other definitions.
- &OrdererOrg
# DefaultOrg defines the organization which is used in the sampleconfig
# of the fabric.git development environment.
Name: OrdererOrg
# ID to load the MSP definition as.
ID: OrdererOrg
# MSPDir is the filesystem path which contains the MSP configuration.
MSPDir: crypto-config/ordererOrganizations/hrl.ibm.il/msp
# AdminPrincipal dictates the type of principal used for an
# organization's Admins policy. Today, only the values of Role.ADMIN and
# Role.MEMBER are accepted, which indicates a principal of role type
# ADMIN and role type MEMBER respectively.
AdminPrincipal: Role.ADMIN
# BCCSP: Select which crypto implementation or library to use for the
# blockchain crypto service provider.
- &PeerOrg
# DefaultOrg defines the organization which is used in the sampleconfig
# of the fabric.git development environment.
Name: PeerOrg
# ID to load the MSP definition as.
ID: PeerOrg
# MSPDir is the filesystem path which contains the MSP configuration.
MSPDir: crypto-config/peerOrganizations/hrl.ibm.il/msp
# AdminPrincipal dictates the type of principal used for an
# organization's Admins policy. Today, only the values of Role.ADMIN and
# Role.MEMBER are accepted, which indicates a principal of role type
# ADMIN and role type MEMBER respectively.
AdminPrincipal: Role.ADMIN
# BCCSP: Select which crypto implementation or library to use for the
# blockchain crypto service provider.
AnchorPeers:
# AnchorPeers defines the location of peers which can be used for
# cross-org gossip communication. Note, this value is only encoded
# in the genesis block in the Application section context.
- Host: ANCHOR_PEER_IP
Port: 7051
################################################################################
#
# SECTION: Orderer
#
# - This section defines the values to encode into a config transaction or
# genesis block for orderer related parameters.
#
################################################################################
Orderer: &OrdererDefaults
# Orderer Type: The orderer implementation to start.
# Available types are "solo" and "kafka".
OrdererType: solo
Addresses:
- ORDERER_IP:7050
# Batch Timeout: The amount of time to wait before creating a batch.
BatchTimeout: 1ms
# Batch Size: Controls the number of messages batched into a block.
BatchSize:
# Max Message Count: The maximum number of messages to permit in a
# batch.
MaxMessageCount: 10
# Absolute Max Bytes: The absolute maximum number of bytes allowed for
# the serialized messages in a batch. If the "kafka" OrdererType is
# selected, set 'message.max.bytes' and 'replica.fetch.max.bytes' on the
# Kafka brokers to a value that is equal to or larger than this one.
AbsoluteMaxBytes: 99 MB
# Preferred Max Bytes: The preferred maximum number of bytes allowed for
# the serialized messages in a batch. A message larger than the
# preferred max bytes will result in a batch larger than preferred max
# bytes.
PreferredMaxBytes: 512 KB
# Max Channels is the maximum number of channels to allow on the ordering
# network. When set to 0, this implies no maximum number of channels.
MaxChannels: 0
Kafka:
# Brokers: A list of Kafka brokers to which the orderer connects.
# NOTE: Use IP:port notation
Brokers:
- 127.0.0.1:9092
# Organizations is the list of orgs which are defined as participants on
# the orderer side of the network.
Organizations:
################################################################################
#
# SECTION: Application
#
# - This section defines the values to encode into a config transaction or
# genesis block for application related parameters.
#
################################################################################
Application: &ApplicationDefaults
# Organizations is the list of orgs which are defined as participants on
# the application side of the network.
Organizations: