|
@@ -1,3 +1,8 @@
|
|
|
|
+# Copyright IBM Corp. All Rights Reserved.
|
|
|
|
+#
|
|
|
|
+# SPDX-License-Identifier: Apache-2.0
|
|
|
|
+#
|
|
|
|
+
|
|
---
|
|
---
|
|
################################################################################
|
|
################################################################################
|
|
#
|
|
#
|
|
@@ -9,15 +14,23 @@
|
|
################################################################################
|
|
################################################################################
|
|
Profiles:
|
|
Profiles:
|
|
|
|
|
|
- MideaOrgs:
|
|
|
|
|
|
+ TwoOrgsOrdererGenesis:
|
|
Orderer:
|
|
Orderer:
|
|
<<: *OrdererDefaults
|
|
<<: *OrdererDefaults
|
|
Organizations:
|
|
Organizations:
|
|
- *OrdererOrg
|
|
- *OrdererOrg
|
|
|
|
+ Consortiums:
|
|
|
|
+ SampleConsortium:
|
|
|
|
+ Organizations:
|
|
|
|
+ - *Org1
|
|
|
|
+ - *Org2
|
|
|
|
+ TwoOrgsChannel:
|
|
|
|
+ Consortium: SampleConsortium
|
|
Application:
|
|
Application:
|
|
<<: *ApplicationDefaults
|
|
<<: *ApplicationDefaults
|
|
Organizations:
|
|
Organizations:
|
|
- - *Org0
|
|
|
|
|
|
+ - *Org1
|
|
|
|
+ - *Org2
|
|
|
|
|
|
################################################################################
|
|
################################################################################
|
|
#
|
|
#
|
|
@@ -34,27 +47,15 @@ Organizations:
|
|
- &OrdererOrg
|
|
- &OrdererOrg
|
|
# DefaultOrg defines the organization which is used in the sampleconfig
|
|
# DefaultOrg defines the organization which is used in the sampleconfig
|
|
# of the fabric.git development environment
|
|
# of the fabric.git development environment
|
|
- Name: OrdererOrg
|
|
|
|
|
|
+ Name: OrdererMSP
|
|
|
|
|
|
# ID to load the MSP definition as
|
|
# ID to load the MSP definition as
|
|
ID: OrdererMSP
|
|
ID: OrdererMSP
|
|
|
|
|
|
# MSPDir is the filesystem path which contains the MSP configuration
|
|
# MSPDir is the filesystem path which contains the MSP configuration
|
|
- MSPDir: examples/midea/crypto-config/ordererOrganizations/ordererOrg1/orderers/orderer.ordererOrg1
|
|
|
|
-
|
|
|
|
- # BCCSP (Blockchain crypto provider): Select which crypto implementation or
|
|
|
|
- # library to use
|
|
|
|
- BCCSP:
|
|
|
|
- Default: SW
|
|
|
|
- SW:
|
|
|
|
- Hash: SHA2
|
|
|
|
- Security: 256
|
|
|
|
- # Location of Key Store. If this is unset, a location will
|
|
|
|
- # be chosen using 'MSPDir'/keystore
|
|
|
|
- FileKeyStore:
|
|
|
|
- KeyStore:
|
|
|
|
-
|
|
|
|
- - &Org0
|
|
|
|
|
|
+ MSPDir: crypto-config/ordererOrganizations/example.com/msp
|
|
|
|
+
|
|
|
|
+ - &Org1
|
|
# DefaultOrg defines the organization which is used in the sampleconfig
|
|
# DefaultOrg defines the organization which is used in the sampleconfig
|
|
# of the fabric.git development environment
|
|
# of the fabric.git development environment
|
|
Name: Org1MSP
|
|
Name: Org1MSP
|
|
@@ -62,25 +63,30 @@ Organizations:
|
|
# ID to load the MSP definition as
|
|
# ID to load the MSP definition as
|
|
ID: Org1MSP
|
|
ID: Org1MSP
|
|
|
|
|
|
- MSPDir: examples/midea/crypto-config/peerOrganizations/peerOrg1/peers/peer0.peerOrg1
|
|
|
|
|
|
+ MSPDir: crypto-config/peerOrganizations/org1.example.com/msp
|
|
|
|
+
|
|
|
|
+ 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: peer0.org1.example.com
|
|
|
|
+ Port: 7051
|
|
|
|
+
|
|
|
|
+ - &Org2
|
|
|
|
+ # DefaultOrg defines the organization which is used in the sampleconfig
|
|
|
|
+ # of the fabric.git development environment
|
|
|
|
+ Name: Org2MSP
|
|
|
|
+
|
|
|
|
+ # ID to load the MSP definition as
|
|
|
|
+ ID: Org2MSP
|
|
|
|
|
|
- # BCCSP (Blockchain crypto provider): Select which crypto implementation or
|
|
|
|
- # library to use
|
|
|
|
- BCCSP:
|
|
|
|
- Default: SW
|
|
|
|
- SW:
|
|
|
|
- Hash: SHA2
|
|
|
|
- Security: 256
|
|
|
|
- # Location of Key Store. If this is unset, a location will
|
|
|
|
- # be chosen using 'MSPDir'/keystore
|
|
|
|
- FileKeyStore:
|
|
|
|
- KeyStore:
|
|
|
|
|
|
+ MSPDir: crypto-config/peerOrganizations/org2.example.com/msp
|
|
|
|
|
|
AnchorPeers:
|
|
AnchorPeers:
|
|
# AnchorPeers defines the location of peers which can be used
|
|
# AnchorPeers defines the location of peers which can be used
|
|
# for cross org gossip communication. Note, this value is only
|
|
# for cross org gossip communication. Note, this value is only
|
|
# encoded in the genesis block in the Application section context
|
|
# encoded in the genesis block in the Application section context
|
|
- - Host: peer0
|
|
|
|
|
|
+ - Host: peer0.org2.example.com
|
|
Port: 7051
|
|
Port: 7051
|
|
|
|
|
|
################################################################################
|
|
################################################################################
|
|
@@ -98,7 +104,7 @@ Orderer: &OrdererDefaults
|
|
OrdererType: solo
|
|
OrdererType: solo
|
|
|
|
|
|
Addresses:
|
|
Addresses:
|
|
- - orderer0:7050
|
|
|
|
|
|
+ - orderer.example.com:7050
|
|
|
|
|
|
# Batch Timeout: The amount of time to wait before creating a batch
|
|
# Batch Timeout: The amount of time to wait before creating a batch
|
|
BatchTimeout: 2s
|
|
BatchTimeout: 2s
|
|
@@ -111,7 +117,7 @@ Orderer: &OrdererDefaults
|
|
|
|
|
|
# Absolute Max Bytes: The absolute maximum number of bytes allowed for
|
|
# Absolute Max Bytes: The absolute maximum number of bytes allowed for
|
|
# the serialized messages in a batch.
|
|
# the serialized messages in a batch.
|
|
- AbsoluteMaxBytes: 99 MB
|
|
|
|
|
|
+ AbsoluteMaxBytes: 98 MB
|
|
|
|
|
|
# Preferred Max Bytes: The preferred maximum number of bytes allowed for
|
|
# Preferred Max Bytes: The preferred maximum number of bytes allowed for
|
|
# the serialized messages in a batch. A message larger than the preferred
|
|
# the serialized messages in a batch. A message larger than the preferred
|