Fabric多orderer的初始化配置文件修改及CA初始化配置参数

1.在crypto-config.yaml文件的

OrdererOrgs:
  # ---------------------------------------------------------------------------
  # Orderer
  # ---------------------------------------------------------------------------
  - Name: Orderer
    Domain: example.com
    CA:
        Country: US
        Province: California
        Locality: San Francisco
    # ---------------------------------------------------------------------------
    # "Specs" - See PeerOrgs below for complete description
    # ---------------------------------------------------------------------------
    Specs:
      - Hostname: orderer    
      #一个orderer是这样的,多个就是这样的;这里的名字跟configtx.yaml的Addresses的头貌似还是一致的
      - Hostname: orderer1
      - Hostname: orderer2
      - Hostname: orderer3

2.在configtx.yaml文件的
Orderer: &OrdererDefaults

    # Orderer Type: The orderer implementation to start
    # Available types are "solo" and "kafka"
    OrdererType: kafka

    Addresses:
        - orderer.example.com:7050     
        #一个就是这样,多个就是这样
        - orderer1.example.com:7050
        - orderer2.example.com:7050
        - orderer3.example.com:7050
        
3.在crypto-config.yaml文件中的orderer和peer中都有一项CA的配置如下,下边是比较全的配置项:       
  CA:
      Country: US
      Province: California
      Locality: San Francisco
  #   OrganizationalUnit: Hyperledger Fabric
  #   StreetAddress: address for org # default nil
  #   PostalCode: postalCode for org # default nil

你可能感兴趣的:(Fabric)