Documentation ¶
Index ¶
- Variables
- type TxServiceImpl
- func (txs *TxServiceImpl) CommitTransaction(snapTxRequest *api.SnapTransactionRequest, peers []fabApi.Peer) (*channel.Response, error)
- func (txs *TxServiceImpl) EndorseTransaction(snapTxRequest *api.SnapTransactionRequest, peers []fabApi.Peer) (*channel.Response, error)
- func (txs *TxServiceImpl) GetTargetPeer(peerCfg *api.PeerConfig, opts ...peer.Option) (fabApi.Peer, error)
- func (txs *TxServiceImpl) VerifyTxnProposalSignature(signedProposal *pb.SignedProposal) error
Constants ¶
This section is empty.
Variables ¶
View Source
var PeerConfigPath = ""
PeerConfigPath use for testing
Functions ¶
This section is empty.
Types ¶
type TxServiceImpl ¶
type TxServiceImpl struct { Config api.Config FcClient api.Client // Callback is invoked after the endorsement // phase of EndorseAndCommitTransaction // (Used in unit tests.) Callback api.EndorsedCallback }
TxServiceImpl used to create transaction service
func (*TxServiceImpl) CommitTransaction ¶
func (txs *TxServiceImpl) CommitTransaction(snapTxRequest *api.SnapTransactionRequest, peers []fabApi.Peer) (*channel.Response, error)
CommitTransaction use to comit the transaction
func (*TxServiceImpl) EndorseTransaction ¶
func (txs *TxServiceImpl) EndorseTransaction(snapTxRequest *api.SnapTransactionRequest, peers []fabApi.Peer) (*channel.Response, error)
EndorseTransaction use to endorse the transaction
func (*TxServiceImpl) GetTargetPeer ¶ added in v0.2.0
func (txs *TxServiceImpl) GetTargetPeer(peerCfg *api.PeerConfig, opts ...peer.Option) (fabApi.Peer, error)
GetTargetPeer to returns target peer for given peer config
func (*TxServiceImpl) VerifyTxnProposalSignature ¶
func (txs *TxServiceImpl) VerifyTxnProposalSignature(signedProposal *pb.SignedProposal) error
VerifyTxnProposalSignature use to verify transaction proposal signature
Click to show internal directories.
Click to hide internal directories.