hyperledger / fabric-ca

https://wiki.hyperledger.org/display/fabric
Apache License 2.0
441 stars 712 forks source link

Possible error on YAML file #345

Closed anagnostouJohn closed 11 months ago

anagnostouJohn commented 1 year ago

I think is an error on configtx.yaml file At AnchorPeers should be - Port: 7051 instead of Port: 7051

- &org1

   Name: org1

   ID: org1MSP

   MSPDir: /tmp/hyperledger/org1/msp

   AnchorPeers:
      - Host: peer1-org1
         Port: 7051
- &org1

   Name: org1

   ID: org1MSP

   MSPDir: /tmp/hyperledger/org1/msp

   AnchorPeers:
      - Host: peer1-org1
      - Port: 7051
denyeart commented 11 months ago

Actually it is correct... it is a single object with two key/value pairs (Host and Port), therefore one dash is correct.

See the reference example in fabric repository: https://github.com/hyperledger/fabric/blob/main/sampleconfig/configtx.yaml