创始块配置

Organizations:
- &OrdererOrg
    Name: OrdererOrg
    ID: OrdererMSP
    MSPDir: /opt/hyperledger/fabricconfig/crypto-config/ordererOrganizations/qklszzn.com/msp
    Policies:
        Readers:
            Type: Signature
            Rule: "OR('OrdererMSP.member')"
        Writers:
            Type: Signature
            Rule: "OR('OrdererMSP.member')"
        Admins:
            Type: Signature
            Rule: "OR('OrdererMSP.admin')"

- &Org1
    Name: Org1MSP
    ID: Org1MSP
    MSPDir: /opt/hyperledger/fabricconfig/crypto-config/peerOrganizations/org1.qklszzn.com/msp
    Policies:
        Readers:
            Type: Signature
            Rule: "OR('Org1MSP.admin', 'Org1MSP.peer', 'Org1MSP.client')"
        Writers:
            Type: Signature
            Rule: "OR('Org1MSP.admin', 'Org1MSP.client')"
        Admins:
            Type: Signature
            Rule: "OR('Org1MSP.admin')"
    AnchorPeers:
        - Host: peer0.org1.qklszzn.com
          Port: 7051

- &Org2
    Name: Org2MSP
    ID: Org2MSP
    MSPDir: /opt/hyperledger/fabricconfig/crypto-config/peerOrganizations/org2.qklszzn.com/msp
    Policies:
        Readers:
            Type: Signature
            Rule: "OR('Org2MSP.admin', 'Org2MSP.peer', 'Org2MSP.client')"
        Writers:
            Type: Signature
            Rule: "OR('Org2MSP.admin', 'Org2MSP.client')"
        Admins:
            Type: Signature
            Rule: "OR('Org2MSP.admin')"
    AnchorPeers:
        - Host: peer0.org2.qklszzn.com
          Port: 7051

Capabilities:
Channel: &ChannelCapabilities 
    V1_4_3: true      
    V1_3: false 
    V1_1: false
Orderer: &OrdererCapabilities
    V1_4_2: true 
    V1_1: false
Application: &ApplicationCapabilities
    V1_4_2: true
    V1_3: false
    V1_2: false  
    V1_1: false

Application: &ApplicationDefaults
Organizations:
Policies:
    Readers:
        Type: ImplicitMeta
        Rule: "ANY Readers"
    Writers:
        Type: ImplicitMeta
        Rule: "ANY Writers"
    Admins:
        Type: ImplicitMeta
        Rule: "MAJORITY Admins"
Capabilities:
    <<: *ApplicationCapabilities

Orderer: &OrdererDefaults
OrdererType: solo
Addresses:
    - orderer.qklszzn.com:7050
BatchTimeout: 2s
BatchSize:
    MaxMessageCount: 10
    AbsoluteMaxBytes: 98 MB
    PreferredMaxBytes: 512 KB
Kafka:
    Brokers:
        - 127.0.0.1:9092
EtcdRaft:
    Consenters:
        - Host: orderer.qklszzn.com
          Port: 7050
          ClientTLSCert: /opt/hyperledger/fabricconfig/crypto-config/ordererOrganizations/qklszzn.com/orderers/orderer.qklszzn.com/tls/server.crt
          ServerTLSCert: /opt/hyperledger/fabricconfig/crypto-config/ordererOrganizations/qklszzn.com/orderers/orderer.qklszzn.com/tls/server.crt
        - Host: orderer2.qklszzn.com
          Port: 7050
          ClientTLSCert: /opt/hyperledger/fabricconfig/crypto-config/ordererOrganizations/qklszzn.com/orderers/orderer2.qklszzn.com/tls/server.crt
          ServerTLSCert: /opt/hyperledger/fabricconfig/crypto-config/ordererOrganizations/qklszzn.com/orderers/orderer2.qklszzn.com/tls/server.crt
        - Host: orderer3.qklszzn.com
          Port: 7050
          ClientTLSCert: /opt/hyperledger/fabricconfig/crypto-config/ordererOrganizations/qklszzn.com/orderers/orderer3.qklszzn.com/tls/server.crt
          ServerTLSCert: /opt/hyperledger/fabricconfig/crypto-config/ordererOrganizations/qklszzn.com/orderers/orderer3.qklszzn.com/tls/server.crt
        - Host: orderer4.qklszzn.com
          Port: 7050
          ClientTLSCert: /opt/hyperledger/fabricconfig/crypto-config/ordererOrganizations/qklszzn.com/orderers/orderer4.qklszzn.com/tls/server.crt
          ServerTLSCert: /opt/hyperledger/fabricconfig/crypto-config/ordererOrganizations/qklszzn.com/orderers/orderer4.qklszzn.com/tls/server.crt
        - Host: orderer5.qklszzn.com
          Port: 7050
          ClientTLSCert: /opt/hyperledger/fabricconfig/crypto-config/ordererOrganizations/qklszzn.com/orderers/orderer5.qklszzn.com/tls/server.crt
          ServerTLSCert: /opt/hyperledger/fabricconfig/crypto-config/ordererOrganizations/qklszzn.com/orderers/orderer5.qklszzn.com/tls/server.crt
Organizations:
Policies:
    Readers:
        Type: ImplicitMeta
        Rule: "ANY Readers"
    Writers:
        Type: ImplicitMeta
        Rule: "ANY Writers"
    Admins:
        Type: ImplicitMeta
        Rule: "MAJORITY Admins"
    BlockValidation:
        Type: ImplicitMeta
        Rule: "ANY Writers"

Channel: &ChannelDefaults
Policies:
    Readers:
        Type: ImplicitMeta
        Rule: "ANY Readers"
    Writers:
        Type: ImplicitMeta
        Rule: "ANY Writers"
    Admins:
        Type: ImplicitMeta
        Rule: "MAJORITY Admins"
Capabilities:
    <<: *ChannelCapabilities

Profiles:
TestTwoOrgsOrdererGenesis:
    <<: *ChannelDefaults
    Orderer:
        <<: *OrdererDefaults
        Organizations:
            - *OrdererOrg
        Capabilities:
            <<: *OrdererCapabilities
    Consortiums:
        SampleConsortium:
            Organizations:
                - *Org1
                - *Org2
TestTwoOrgsChannel:
    Consortium: SampleConsortium
    <<: *ChannelDefaults
    Application:
        <<: *ApplicationDefaults
        Organizations:
            - *Org1
            - *Org2
        Capabilities:
            <<: *ApplicationCapabilities

SampleDevModeKafka:
    <<: *ChannelDefaults
    Capabilities:
        <<: *ChannelCapabilities
    Orderer:
        <<: *OrdererDefaults
        OrdererType: kafka
        Kafka:
            Brokers:
            - kafka.qklszzn.com:9092

        Organizations:
        - *OrdererOrg
        Capabilities:
            <<: *OrdererCapabilities
    Application:
        <<: *ApplicationDefaults
        Organizations:
        - <<: *OrdererOrg
    Consortiums:
        SampleConsortium:
            Organizations:
            - *Org1
            - *Org2

SampleMultiNodeEtcdRaft:
    <<: *ChannelDefaults
    Capabilities:
        <<: *ChannelCapabilities
    Orderer:
        <<: *OrdererDefaults
        OrdererType: etcdraft
        EtcdRaft:
            Consenters:
            - Host: orderer.qklszzn.com
              Port: 7050
              ClientTLSCert: /opt/hyperledger/fabricconfig/crypto-config/ordererOrganizations/example.com/orderers/orderer.qklszzn.com/tls/server.crt
              ServerTLSCert: /opt/hyperledger/fabricconfig/crypto-config/ordererOrganizations/example.com/orderers/orderer.qklszzn.com/tls/server.crt
            - Host: orderer2.qklszzn.com
              Port: 7050
              ClientTLSCert: /opt/hyperledger/fabricconfig/crypto-config/ordererOrganizations/example.com/orderers/orderer2.qklszzn.com/tls/server.crt
              ServerTLSCert: /opt/hyperledger/fabricconfig/crypto-config/ordererOrganizations/example.com/orderers/orderer2.qklszzn.com/tls/server.crt
            - Host: orderer3.qklszzn.com
              Port: 7050
              ClientTLSCert: /opt/hyperledger/fabricconfig/crypto-config/ordererOrganizations/example.com/orderers/orderer3.qklszzn.com/tls/server.crt
              ServerTLSCert: /opt/hyperledger/fabricconfig/crypto-config/ordererOrganizations/example.com/orderers/orderer3.qklszzn.com/tls/server.crt
            - Host: orderer4.qklszzn.com
              Port: 7050
              ClientTLSCert: /opt/hyperledger/fabricconfig/crypto-config/ordererOrganizations/example.com/orderers/orderer4.qklszzn.com/tls/server.crt
              ServerTLSCert: /opt/hyperledger/fabricconfig/crypto-config/ordererOrganizations/example.com/orderers/orderer4.qklszzn.com/tls/server.crt
            - Host: orderer5.qklszzn.com
              Port: 7050
              ClientTLSCert: /opt/hyperledger/fabricconfig/crypto-config/ordererOrganizations/example.com/orderers/orderer5.qklszzn.com/tls/server.crt
              ServerTLSCert: /opt/hyperledger/fabricconfig/crypto-config/ordererOrganizations/example.com/orderers/orderer5.qklszzn.com/tls/server.crt
        Addresses:
            - orderer.qklszzn.com:7050
            - orderer2.qklszzn.com:7050
            - orderer3.qklszzn.com:7050
            - orderer4.qklszzn.com:7050
            - orderer5.qklszzn.com:7050

        Organizations:
        - *OrdererOrg
        Capabilities:
            <<: *OrdererCapabilities
    Application:
        <<: *ApplicationDefaults
        Organizations:
        - <<: *OrdererOrg
    Consortiums:
        SampleConsortium:
            Organizations:
            - *Org1
            - *Org2
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值