Chaincode invocation always submitted to only one peer #680
-
The 2.2.16 sdk discovery feature and collections_config.json are used to build contract connection. The collections_config.json defines the requiredPeerCount=2. While every time the chaincode is invoked, only one CCAAS will receive the invocatoin. Does node sdk support multiple peers endorsement? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
collections_config.json:
|
Beta Was this translation helpful? Give feedback.
-
The peers (or rather organizations) used for endorsement are determined by the endorsement policy. The collection configuration options you are referring to define how private data is distributed between peers following endorsement. See the Fabric documentation on collection definition. |
Beta Was this translation helpful? Give feedback.
-
@bestbeforetoday So how can I set multiple endorsing peers for Org1? I configure them in the connection.json but does not work.
It does work when using java sdk. What shall I do differently using node sdk? |
Beta Was this translation helpful? Give feedback.
The peers (or rather organizations) used for endorsement are determined by the endorsement policy. The collection configuration options you are referring to define how private data is distributed between peers following endorsement. See the Fabric documentation on collection definition.