Kagome
Polkadot Runtime Engine in C++17
kagome::consensus::BlockValidator Class Referenceabstract

#include <block_validator.hpp>

Inheritance diagram for kagome::consensus::BlockValidator:
Collaboration diagram for kagome::consensus::BlockValidator:

Public Member Functions

virtual ~BlockValidator ()=default
 
virtual outcome::result< void > validateHeader (const primitives::BlockHeader &block_header, const EpochNumber epoch_number, const primitives::AuthorityId &authority_id, const Threshold &threshold, const primitives::BabeConfiguration &config) const =0
 

Detailed Description

Validator of the blocks

Definition at line 17 of file block_validator.hpp.

Constructor & Destructor Documentation

virtual kagome::consensus::BlockValidator::~BlockValidator ( )
virtualdefault

Member Function Documentation

virtual outcome::result<void> kagome::consensus::BlockValidator::validateHeader ( const primitives::BlockHeader block_header,
const EpochNumber  epoch_number,
const primitives::AuthorityId authority_id,
const Threshold threshold,
const primitives::BabeConfiguration config 
) const
pure virtual

Validate the block header

Parameters
blockto be validated
authority_idauthority that sent this block
thresholdis vrf threshold for this epoch
configis babe config for this epoch
Returns
nothing or validation error

Implemented in kagome::consensus::BabeBlockValidator.


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