DearFantasy

config/configtx.yaml

Apr 8th, 2022 (edited)
633
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 5.61 KB | None | 0 0
  1. Organizations:
  2.     - &org1MSP
  3.         Name: org1MSP
  4.         ID: org1MSP
  5.         MSPDir: ../orgs/org1.example.com/msp
  6.         Policies:
  7.             Readers:
  8.                 Type: Signature
  9.                 Rule: "OR('org1MSP.member')"
  10.             Writers:
  11.                 Type: Signature
  12.                 Rule: "OR('org1MSP.member')"
  13.             Admins:
  14.                 Type: Signature
  15.                 Rule: "OR('org1MSP.member')"
  16.             Endorsement:
  17.                 Type: Signature
  18.                 Rule: "OR('org1MSP.member')"
  19.         AnchorPeers:
  20.             - Host: peer1.org1.example.com
  21.               Port: 7251
  22.         OrdererEndpoints:
  23.            - orderer1.org1.example.com:8251
  24.  
  25.     - &org2MSP
  26.         Name: org2MSP
  27.         ID: org2MSP
  28.         MSPDir: ../orgs/org2.example.com/msp
  29.         Policies:
  30.             Readers:
  31.                 Type: Signature
  32.                 Rule: "OR('org2MSP.member')"
  33.             Writers:
  34.                 Type: Signature
  35.                 Rule: "OR('org2MSP.member')"
  36.             Admins:
  37.                 Type: Signature
  38.                 Rule: "OR('org2MSP.member')"
  39.             Endorsement:
  40.                 Type: Signature
  41.                 Rule: "OR('org2MSP.member')"
  42.         AnchorPeers:
  43.             - Host: peer1.org2.example.com
  44.               Port: 7351
  45.         OrdererEndpoints:
  46.            - orderer1.org2.example.com:8351
  47.  
  48.     - &org3MSP
  49.         Name: org3MSP
  50.         ID: org3MSP
  51.         MSPDir: ../orgs/org3.example.com/msp
  52.         Policies:
  53.             Readers:
  54.                 Type: Signature
  55.                 Rule: "OR('org3MSP.member')"
  56.             Writers:
  57.                 Type: Signature
  58.                 Rule: "OR('org3MSP.member')"
  59.             Admins:
  60.                 Type: Signature
  61.                 Rule: "OR('org3MSP.member')"
  62.             Endorsement:
  63.                 Type: Signature
  64.                 Rule: "OR('org3MSP.member')"
  65.         AnchorPeers:
  66.             - Host: peer1.org3.example.com
  67.               Port: 7451
  68.         OrdererEndpoints:
  69.            - orderer1.org3.example.com:8451
  70.  
  71. Capabilities:
  72.     Channel: &ChannelCapabilities
  73.         V2_0: true
  74.     Orderer: &OrdererCapabilities
  75.         V2_0: true
  76.     Application: &ApplicationCapabilities
  77.         V2_0: true
  78.  
  79. Application: &ApplicationDefaults
  80.     Organizations:
  81.     Policies:
  82.         Readers:
  83.             Type: ImplicitMeta
  84.             Rule: "ANY Readers"
  85.         Writers:
  86.             Type: ImplicitMeta
  87.             Rule: "ANY Writers"
  88.         Admins:
  89.             Type: ImplicitMeta
  90.             Rule: "MAJORITY Admins"
  91.         LifecycleEndorsement:
  92.             Type: ImplicitMeta
  93.             Rule: "MAJORITY Endorsement"
  94.         Endorsement:
  95.             Type: ImplicitMeta
  96.             Rule: "MAJORITY Endorsement"
  97.  
  98.     Capabilities:
  99.         <<: *ApplicationCapabilities
  100.  
  101. Orderer: &OrdererDefaults
  102.  
  103.     OrdererType: etcdraft
  104.     Addresses:
  105.        - orderer1.org1.example.com:8251
  106.         - orderer1.org2.example.com:8351
  107.         - orderer1.org3.example.com:8451
  108.  
  109.     EtcdRaft:
  110.         Consenters:
  111.         - Host: orderer1.org1.example.com
  112.           Port: 8251
  113.           ClientTLSCert: ../orgs/org1.example.com/registers/orderer1/tls-msp/signcerts/cert.pem
  114.           ServerTLSCert: ../orgs/org1.example.com/registers/orderer1/tls-msp/signcerts/cert.pem
  115.         - Host: orderer1.org2.example.com
  116.           Port: 8351
  117.           ClientTLSCert: ../orgs/org2.example.com/registers/orderer1/tls-msp/signcerts/cert.pem
  118.           ServerTLSCert: ../orgs/org2.example.com/registers/orderer1/tls-msp/signcerts/cert.pem
  119.         - Host: orderer1.org3.example.com
  120.           Port: 8451
  121.           ClientTLSCert: ../orgs/org3.example.com/registers/orderer1/tls-msp/signcerts/cert.pem
  122.           ServerTLSCert: ../orgs/org3.example.com/registers/orderer1/tls-msp/signcerts/cert.pem
  123.  
  124.     BatchTimeout: 2s
  125.  
  126.     BatchSize:
  127.         MaxMessageCount: 10
  128.  
  129.         AbsoluteMaxBytes: 99 MB
  130.  
  131.         PreferredMaxBytes: 512 KB
  132.  
  133.     Organizations:
  134.     Policies:
  135.         Readers:
  136.             Type: ImplicitMeta
  137.             Rule: "ANY Readers"
  138.         Writers:
  139.             Type: ImplicitMeta
  140.             Rule: "ANY Writers"
  141.         Admins:
  142.             Type: ImplicitMeta
  143.             Rule: "MAJORITY Admins"
  144.  
  145.         BlockValidation:
  146.             Type: ImplicitMeta
  147.             Rule: "ANY Writers"
  148.  
  149.     Capabilities:
  150.         <<: *OrdererCapabilities
  151.  
  152. Channel: &ChannelDefaults
  153.  
  154.     Policies:
  155.         Readers:
  156.             Type: ImplicitMeta
  157.             Rule: "ANY Readers"
  158.  
  159.         Writers:
  160.             Type: ImplicitMeta
  161.             Rule: "ANY Writers"
  162.  
  163.         Admins:
  164.             Type: ImplicitMeta
  165.             Rule: "MAJORITY Admins"
  166.  
  167.     Capabilities:
  168.         <<: *ChannelCapabilities
  169.  
  170. Profiles:
  171.     OrgsOrdererGenesis:
  172.         <<: *ChannelDefaults    
  173.         Orderer:
  174.             <<: *OrdererDefaults
  175.             Capabilities:
  176.                 <<: *OrdererCapabilities
  177.  
  178.         Consortiums:
  179.             SampleConsortium:
  180.                 Organizations:
  181.                    - *org1MSP
  182.                     - *org2MSP
  183.  
  184.     OrgsChannel:
  185.         Consortium: SampleConsortium    
  186.         <<: *ChannelDefaults
  187.         Orderer:
  188.             <<: *OrdererDefaults
  189.             Organizations:
  190.                - *org1MSP
  191.                 - *org2MSP
  192.                 - *org3MSP
  193.             Capabilities: *OrdererCapabilities
  194.         Application:
  195.             <<: *ApplicationDefaults
  196.             Organizations:
  197.                - *org1MSP
  198.                 - *org2MSP
  199.                 - *org3MSP
  200.             Capabilities:
  201.                 <<: *ApplicationCapabilities
Add Comment
Please, Sign In to add comment