hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::model::TransactionResponse Struct Reference

#include "transaction_response.hpp"

Collaboration diagram for iroha::model::TransactionResponse:
Collaboration graph

Public Types

enum  Status {
  STATELESS_VALIDATION_FAILED, STATELESS_VALIDATION_SUCCESS, STATEFUL_VALIDATION_FAILED, STATEFUL_VALIDATION_SUCCESS,
  COMMITTED, MST_EXPIRED, NOT_RECEIVED
}
 

Public Member Functions

virtual ~TransactionResponse ()=default
 
 TransactionResponse (std::string tx_hash, Status status)
 

Public Attributes

std::string tx_hash {}
 
Status current_status {}
 

Detailed Description

Transaction response is data with status during transaction lifecycle

Member Enumeration Documentation

Enumerator
STATELESS_VALIDATION_FAILED 

stateless validation failed

STATELESS_VALIDATION_SUCCESS 

stateless validation passed

STATEFUL_VALIDATION_FAILED 

stateful validation failed

STATEFUL_VALIDATION_SUCCESS 

stateful validation passed

COMMITTED 

tx pipeline succeeded, tx is committed

MST_EXPIRED 

tx is expired in mst validation

NOT_RECEIVED 

transaction is not in handler map

Constructor & Destructor Documentation

virtual iroha::model::TransactionResponse::~TransactionResponse ( )
virtualdefault
iroha::model::TransactionResponse::TransactionResponse ( std::string  tx_hash,
Status  status 
)
inline

Member Data Documentation

Status iroha::model::TransactionResponse::current_status {}
std::string iroha::model::TransactionResponse::tx_hash {}

Processed transaction


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