Repository navigation
Failed to collect enough transaction endorsements #4741
Replies: 1 comment
|
This is almost always a peer-targeting / private-data-collection mismatch between your CLI test and your Go client, not a bug in CreateDataSet itself. When you invoke via the When you invoke the same function from a Fabric SDK/Gateway client, the SDK usually relies on service discovery to pick endorsing peers, and discovery doesn't automatically know that Things I would check, in order. First, in your Go client, are you specifying endorsing peers explicitly (e.g. Gateway's If you can share which client API you're calling |
Uh oh!
There was an error while loading. Please reload this page.
I had designed the collections_config.json file. When I invoke my smart contract's function 'CreateDataSet' in a go application, use 'PutPrivateData' to put my dataset into a collection, I sometimes get the 'Failed to collect enough transaction endorsements ' erorr. But when I invote my 'CreateDataSet' function through the terminal, I never receive such erorr. What's wrong with my program? Hope to receive your help.
All reactions