new DiscoveryHandler(discoveryService)
constructor
Parameters:
Name | Type | Description |
---|---|---|
discoveryService |
DiscoveryService | The discovery service for this handler. |
Extends
Methods
-
<async> commit(signedProposal, request)
-
This will submit transactions to be committed to one committer at a time from a list currently assigned to the channel.
Parameters:
Name Type Description signedProposal
* request
Object - Overrides:
-
compareProposalResponseResults(proposalResponses)
-
Utility method to examine a set of proposals to check they contain the same endorsement result write sets. This will validate that the endorsing peers all agree on the result of the chaincode execution.
Parameters:
Name Type Description proposalResponses
Array.<ProposalResponse> The proposal responses from all endorsing peers Returns:
True when all proposals compare equally, false otherwise.- Type
- boolean
-
<async> endorse(signedProposal, request)
-
This method will submit transactions to be endorsed to endorsers as determined by the endorser's discovery service
Parameters:
Name Type Description signedProposal
* request
* - Overrides:
-
<async> query(signedProposal, request)
-
This will send transactions to all peers found by discovery.
Parameters:
Name Type Description signedProposal
* request
Object Include a 'mspid' when just peers from an organization are required - Overrides:
-
toString()
-
implementing class must implement
- Inherited From:
- Overrides: