hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::interface::TransactionSequence Class Reference

#include "transaction_sequence.hpp"

Collaboration diagram for shared_model::interface::TransactionSequence:
Collaboration graph

Public Member Functions

 TransactionSequence ()=delete
 
 TransactionSequence (const TransactionSequence &)=default
 
 TransactionSequence (TransactionSequence &&)=default
 
 TransactionSequence (const types::BatchesCollectionType &batches)
 
const types::SharedTxsCollectionTypetransactions () const
 
const types::BatchesCollectionTypebatches () const
 
std::string toString () const
 

Detailed Description

Transaction sequence is the collection of transactions where:

  1. All transactions from the same batch are place contiguously
  2. All batches are full (no transaction from the batch can be outside sequence)

Constructor & Destructor Documentation

shared_model::interface::TransactionSequence::TransactionSequence ( )
delete
shared_model::interface::TransactionSequence::TransactionSequence ( const TransactionSequence )
default
shared_model::interface::TransactionSequence::TransactionSequence ( TransactionSequence &&  )
default
shared_model::interface::TransactionSequence::TransactionSequence ( const types::BatchesCollectionType batches)
explicit

Member Function Documentation

const types::BatchesCollectionType & shared_model::interface::TransactionSequence::batches ( ) const

Get batches in transaction sequence Note that transaction without batch meta are returned as batch with single transaction

Returns
collection of batches from transaction sequence
std::string shared_model::interface::TransactionSequence::toString ( ) const

Here is the call graph for this function:

const types::SharedTxsCollectionType & shared_model::interface::TransactionSequence::transactions ( ) const

Retrieves transactions from all batches as single collection

Returns
all batches transactions

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