new BasicCommitHandler(channel)
constructor
Parameters:
Name | Type | Description |
---|---|---|
channel |
Channel | The channel for this handler. |
Extends
Methods
-
<static> create(channel)
-
Factory method to create an instance of a committer handler.
Parameters:
Name Type Description channel
Channel the channel instance that this commit handler will be servicing. Returns:
The instance of the handler- Type
- BasicCommitHandler
-
commit(params)
-
This method will process the parameters to determine the orderers. The handler will use the provided orderers or use the orderers assigned to the channel. The handler is expected to preform failover and use all available orderers to send the endorsed transaction.
Parameters:
Name Type Description params
CommitHandlerParameters A EndorsementHandlerParameters - Inherited From:
- Overrides:
Returns:
A Promise for the ProposalResponseObject, the same results as calling the Channel 'sendTransactionProposal' method directly.- Type
- Promise
-
initialize()
-
This method will be called by the channel when the channel is initialzied.
- Inherited From:
- Overrides: