Iroha - A simple, decentralized ledger http://iroha.tech
iroha::Completer Class Referenceabstract

#include "mst_state.hpp"

Inheritance diagram for iroha::Completer:
Inheritance graph
Collaboration diagram for iroha::Completer:
Collaboration graph

Public Member Functions

virtual bool operator() (const DataType &batch) const =0
virtual bool operator() (const DataType &batch, const TimeType &time) const =0
virtual ~Completer ()=default

Detailed Description

Completer is strategy for verification batches on completeness and expiration

Constructor & Destructor Documentation

virtual iroha::Completer::~Completer ( )

Member Function Documentation

virtual bool iroha::Completer::operator() ( const DataType batch) const
pure virtual

Verify that batch is completed

batch- target object for verification
true, if complete

Implemented in iroha::DefaultCompleter.

virtual bool iroha::Completer::operator() ( const DataType batch,
const TimeType time 
) const
pure virtual

Operator checks whether the batch has expired

batch- object for validation
time- current time
true, if the batch has expired

Implemented in iroha::DefaultCompleter.

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