Re: What is the purpose of CORE_PEER_ADDRESS when chaincode is being invoked on multiple peers?
Nikhil Gupta
If you are using the CLI to submit a transaction, you can use the peer addresses flag:
toggle quoted messageShow quoted text
--peerAddresses peer0.org2.example.com:9051 to target peers that you need for endorsement outside your org even if the core peer address is set to your peer. Best, Nik -----fabric@... wrote: ----- To: Siddharth Jain <siddjain@...>, fabric@... From: "Anil Singh" Sent by: fabric@... Date: 09/25/2019 01:38AM Subject: [EXTERNAL] Re: [Hyperledger Fabric] What is the purpose of CORE_PEER_ADDRESS when chaincode is being invoked on multiple peers? It depends where are you using this.
When used as peer config, this represents the endpoint to other peers in the same organization. For peers in other organization, see
gossip.externalEndpoint for more info. When used as CLI config, this means the peer's endpoint to interact with
Thanks,
Anil
|
|