mohammed
mohammed

Reputation: 383

Hyperledger fabric discovery service CLI

i am using hyperledger fabric-samples basic network I've modified network with 2 organization and 4 peer everything works fine but when i use discover cli it returns null.

peer0.org1.example.com (anchor peer)
peer1.org1.example.com
peer0.org2.example.com (anchor peer)
peer0.org2.example.com
./discover --configFile conf.yaml peers --channel mychannel  --server peer0.org1.example.com:7051

conf.yaml file contains userKey and userCert for peer0.org1.example.com

i have updated anchor peer for both organizations in the channel.

Upvotes: 0

Views: 611

Answers (1)

yacovm
yacovm

Reputation: 5140

You need to define an external endpoint for your peer, as discovery only reveals peers that have external endpoints.

Add to the docker-compose.yaml file:

  • CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.example.com:7051

And it should work.

Upvotes: 1

Related Questions