Tools, FAQ, Tutorials:
"configtx.yaml" Environment Configuration File
What is the "configtx.yaml" Environment Configuration File?
✍: FYIcenter.com
"configtx.yaml" is a Configuration File used to control the Hyplerledger Composer development environment. It is located in the "composer" sub-directory:
$ cd fabric-dev-servers/fabric-scripts/hlfv12/composer $ ls -l -rw-r--r-- 1 fyicenter 378 Sep 29 2018 composer-channel.tx -rw-r--r-- 1 fyicenter 6338 Sep 29 2018 composer-genesis.block -rw-r--r-- 1 fyicenter 4504 Sep 29 2018 configtx.yaml drwxr-xr-x 4 fyicenter 4096 Apr 1 01:59 crypto-config -rw-r--r-- 1 fyicenter 3554 Sep 29 2018 crypto-config.yaml -rw-r--r-- 1 fyicenter 2769 Oct 12 22:00 docker-compose-dev.yml -rw-r--r-- 1 fyicenter 2726 Oct 12 21:59 docker-compose.yml -rw-r--r-- 1 fyicenter 869 Sep 29 2018 howtobuild.txt $ more configtx.yaml # Copyright IBM Corp. All Rights Reserved. # # SPDX-License-Identifier: Apache-2.0 # --- ################################################################################ # # Profile # # - Different configuration profiles may be encoded here to be specified # as parameters to the configtxgen tool # ################################################################################ Profiles: ComposerOrdererGenesis: Orderer: <<: *OrdererDefaults Organizations: - *OrdererOrg Consortiums: ComposerConsortium: Organizations: - *Org1 ComposerChannel: Consortium: ComposerConsortium Application: <<: *ApplicationDefaults Organizations: - *Org1 ################################################################################ # # 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: OrdererMSP # MSPDir is the filesystem path which contains the MSP configuration MSPDir: crypto-config/ordererOrganizations/example.com/msp # turn off security for the channel AdminPrincipal: Role.MEMBER - &Org1 # DefaultOrg defines the organization which is used in the sampleconfig # of the fabric.git development environment Name: Org1 # ID to load the MSP definition as ID: Org1MSP MSPDir: crypto-config/peerOrganizations/org1.example.com/msp # turn off security for the peer AdminPrincipal: Role.MEMBER 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 ################################################################################ # # 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.example.com:7050 # Batch Timeout: The amount of time to wait before creating a batch BatchTimeout: 2s # 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. AbsoluteMaxBytes: 98 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 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:
Â
⇒ Hyperledger Composer Environment Components
⇠"crypto-config.yaml" Environment Configuration File
2020-07-22, 1126🔥, 0💬
Popular Posts:
How To Protect Special Characters in Query String in PHP? If you want to include special characters ...
What Happens If One Row Has Missing Columns? What happens if one row has missing columns? Most brows...
How to create a navigation file like navigation.xhtml for an EPUB 3.0 book? At least one navigation ...
Where to get a JSON.stringify() Example Code in JavaScript? Here is a good JSON.stringify() example ...
How to use the "send-request" Policy statement to call an extra web service for an Azure API service...