hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::proto::TransactionResponse::Impl Struct Reference
Collaboration diagram for shared_model::proto::TransactionResponse::Impl:
Collaboration graph

Public Member Functions

 Impl (TransportType &&ref)
 
 Impl (const TransportType &ref)
 

Public Attributes

TransportType proto_
 
const ProtoResponseVariantType variant_
 
const ResponseVariantType ivariant_ {variant_}
 
const crypto::Hash hash_ = crypto::Hash::fromHexString(proto_.tx_hash())
 

Constructor & Destructor Documentation

◆ Impl() [1/2]

shared_model::proto::TransactionResponse::Impl::Impl ( TransportType &&  ref)
inlineexplicit

◆ Impl() [2/2]

shared_model::proto::TransactionResponse::Impl::Impl ( const TransportType ref)
inlineexplicit

Member Data Documentation

◆ hash_

const crypto::Hash shared_model::proto::TransactionResponse::Impl::hash_ = crypto::Hash::fromHexString(proto_.tx_hash())

◆ ivariant_

const ResponseVariantType shared_model::proto::TransactionResponse::Impl::ivariant_ {variant_}

◆ proto_

TransportType shared_model::proto::TransactionResponse::Impl::proto_

◆ variant_

const ProtoResponseVariantType shared_model::proto::TransactionResponse::Impl::variant_
Initial value:
{[this] {
auto &ar = proto_;
switch (ar.tx_status()) {
STATELESS_VALIDATION_FAILED, StatelessFailedTxResponse, ar);
STATELESS_VALIDATION_SUCCESS, StatelessValidTxResponse, ar);
STATEFUL_VALIDATION_FAILED, StatefulFailedTxResponse, ar);
STATEFUL_VALIDATION_SUCCESS, StatefulValidTxResponse, ar);
ENOUGH_SIGNATURES_COLLECTED, EnoughSignaturesCollectedResponse, ar);
default:
assert(!"Unexpected transaction response case.");
}
}()}

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