hyperledger/iroha
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 isCompleted (const DataType &batch) const =0
 
virtual bool isExpired (const DataType &batch, const TimeType &current_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 ( )
virtualdefault

Member Function Documentation

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

Verify that batch is completed

Parameters
batch- target object for verification
Returns
true, if complete

Implemented in iroha::DefaultCompleter.

virtual bool iroha::Completer::isExpired ( const DataType batch,
const TimeType current_time 
) const
pure virtual

Check whether the batch has expired

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

Implemented in iroha::DefaultCompleter.


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