#include "tx_response.hpp"
|
| enum | PrioritiesComparisonResult { PrioritiesComparisonResult::kLess,
PrioritiesComparisonResult::kEqual,
PrioritiesComparisonResult::kGreater
} |
| |
| using | ResponseVariantType = wrap< StatelessFailedTxResponse, StatelessValidTxResponse, StatefulFailedTxResponse, StatefulValidTxResponse, RejectedTxResponse, CommittedTxResponse, MstExpiredResponse, NotReceivedTxResponse, MstPendingResponse, EnoughSignaturesCollectedResponse > |
| | Type of variant, that handle all concrete tx responses in the system. More...
|
| |
| using | TransactionHashType = interface::types::HashType |
| | Type of transaction hash. More...
|
| |
| using | StatelessErrorOrFailedCommandNameType = std::string |
| |
| using | FailedCommandIndexType = size_t |
| | Type of command index, which failed validation. More...
|
| |
| using | ErrorCodeType = uint32_t |
| | Type of command error code. More...
|
| |
| using | ModelType = TransactionResponse |
| |
|
| virtual int | priority () const noexcept=0 |
| |
TransactionResponse is a status of transaction in system
◆ ErrorCodeType
Type of command error code.
◆ FailedCommandIndexType
Type of command index, which failed validation.
◆ ResponseVariantType
Type of variant, that handle all concrete tx responses in the system.
◆ StatelessErrorOrFailedCommandNameType
Type of stateless validation error or command name, which failed validation
◆ TransactionHashType
Type of transaction hash.
◆ PrioritiesComparisonResult
Enumeration for holding result of priorities comparison
| Enumerator |
|---|
| kLess | |
| kEqual | |
| kGreater | |
◆ comparePriorities()
Compare priorities of two transaction responses
- Parameters
-
- Returns
- enumeration result of that comparison
◆ errorCode()
| virtual ErrorCodeType shared_model::interface::TransactionResponse::errorCode |
( |
| ) |
const |
|
pure virtual |
◆ failedCommandIndex()
◆ get()
◆ operator==()
| bool TransactionResponse::operator== |
( |
const ModelType & |
rhs | ) |
const |
|
override |
◆ priority()
| virtual int shared_model::interface::TransactionResponse::priority |
( |
| ) |
const |
|
protectedpure virtualnoexcept |
- Returns
- priority of this transaction response; transaction response can only be replaced with one with higher priority
◆ statelessErrorOrCommandName()
◆ toString()
| std::string TransactionResponse::toString |
( |
| ) |
const |
|
overridevirtual |
◆ transactionHash()
| virtual const TransactionHashType& shared_model::interface::TransactionResponse::transactionHash |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following files: