Class: CommitHandler

api. CommitHandler

Base class for commit handling

new CommitHandler()

Methods


<static> create()

This static method will be called by the channel to create an instance of this handler. It will be passed the channel object this handler is working with.

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
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.