hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::torii::CommandService Class Referenceabstract

#include "command_service.hpp"

Inheritance diagram for iroha::torii::CommandService:
Inheritance graph
Collaboration diagram for iroha::torii::CommandService:
Collaboration graph

Public Member Functions

virtual ~CommandService ()=default
 
virtual void handleTransactionBatch (std::shared_ptr< shared_model::interface::TransactionBatch > batch)=0
 
virtual std::shared_ptr< shared_model::interface::TransactionResponsegetStatus (const shared_model::crypto::Hash &request)=0
 
virtual void processTransactionResponse (std::shared_ptr< shared_model::interface::TransactionResponse > response)=0
 

Constructor & Destructor Documentation

◆ ~CommandService()

virtual iroha::torii::CommandService::~CommandService ( )
virtualdefault

Member Function Documentation

◆ getStatus()

virtual std::shared_ptr<shared_model::interface::TransactionResponse> iroha::torii::CommandService::getStatus ( const shared_model::crypto::Hash request)
pure virtual

Request to retrieve a status of any particular transaction

Parameters
request- TxStatusRequest object which identifies transaction uniquely
Returns
response which contains a current state of requested transaction

Implemented in iroha::torii::CommandServiceImpl.

◆ handleTransactionBatch()

virtual void iroha::torii::CommandService::handleTransactionBatch ( std::shared_ptr< shared_model::interface::TransactionBatch batch)
pure virtual

Actual implementation of sync Torii in CommandService

Parameters
batch- transactions we've received

Implemented in iroha::torii::CommandServiceImpl.

◆ processTransactionResponse()

virtual void iroha::torii::CommandService::processTransactionResponse ( std::shared_ptr< shared_model::interface::TransactionResponse response)
pure virtual

The documentation for this class was generated from the following file: