#include "mst_state.hpp"


Public Member Functions | |
| DefaultCompleter (std::chrono::minutes expiration_time) | |
| bool | isCompleted (const DataType &batch) const override |
| bool | isExpired (const DataType &tx, const TimeType ¤t_time) const override |
Public Member Functions inherited from iroha::Completer | |
| virtual | ~Completer ()=default |
Class provides the default behavior for the batch completer. Complete, if all transactions have at least quorum number of signatures. Expired if at least one transaction is expired.
|
explicit |
Creates new Completer with a given expiration time for transactions
| expiration_time | - expiration time in minutes |
|
overridevirtual |
Verify that batch is completed
| batch | - target object for verification |
Implements iroha::Completer.
|
overridevirtual |
Check whether the batch has expired
| batch | - object for validation |
| current_time | - current time |
Implements iroha::Completer.