rahul_eth
rahul_eth

Reputation: 132

How to make Peer Read Only in Hyperledger fabric

A peer is by default endorsing peer , committing peer as well. I want to make it only committing peer.

Upvotes: 0

Views: 235

Answers (1)

kekomal
kekomal

Reputation: 2200

You can do this:

  • Avoid installing chaincodes on those peers. This way, the peers cannot endorse anything.
  • Avoid access to chaincode port (7052 by default) on those peers (or set your CORE_PEER_CHAINCODELISTENADDRESS to a non-accessible endpoint). If you are using external builders and launchers some other considerations must be made.
  • Set endorsingPeer to false in your connection profile for those peers. This is only a client setup to be consistent with your network.

Upvotes: 1

Related Questions