#include "chain_validator.hpp"
ChainValidator is interface of chain validation, that is required on commit step of consensus
◆ ~ChainValidator()
| virtual iroha::validation::ChainValidator::~ChainValidator |
( |
| ) |
|
|
virtualdefault |
◆ validateAndApply()
Try to apply the blocks from observable to the storage.
While applying the blocks it will validate all their signatures and related meta information such as previous hash, height and other meta information
- Parameters
-
| blocks | - observable with all blocks, that should be applied atomically |
| storage | - storage to which the blocks are applied |
- Returns
- true if commit is valid and successfully applied, false otherwise
Implemented in iroha::validation::ChainValidatorImpl.
The documentation for this class was generated from the following file: