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

Keeps actual babe configuration. More...

#include <babe_config_repository.hpp>

Inheritance diagram for kagome::consensus::babe::BabeConfigRepository:
Collaboration diagram for kagome::consensus::babe::BabeConfigRepository:

Public Member Functions

virtual ~BabeConfigRepository ()=default
 
virtual BabeDuration slotDuration () const =0
 
virtual EpochLength epochLength () const =0
 
virtual std::shared_ptr< const primitives::BabeConfigurationconfig (const primitives::BlockInfo &parent_block, consensus::EpochNumber epoch_number)=0
 

Detailed Description

Keeps actual babe configuration.

Definition at line 14 of file babe_config_repository.hpp.

Constructor & Destructor Documentation

virtual kagome::consensus::babe::BabeConfigRepository::~BabeConfigRepository ( )
virtualdefault

Member Function Documentation

virtual std::shared_ptr<const primitives::BabeConfiguration> kagome::consensus::babe::BabeConfigRepository::config ( const primitives::BlockInfo parent_block,
consensus::EpochNumber  epoch_number 
)
pure virtual

Returns actual babe configuration

Returns
actual babe configuration

Implemented in kagome::consensus::babe::BabeConfigRepositoryImpl.

virtual EpochLength kagome::consensus::babe::BabeConfigRepository::epochLength ( ) const
pure virtual

Returns epoch length in number of slot

Returns
slot duration

Implemented in kagome::consensus::babe::BabeConfigRepositoryImpl.

virtual BabeDuration kagome::consensus::babe::BabeConfigRepository::slotDuration ( ) const
pure virtual

Returns duration of slot in milliseconds

Returns
slot duration

Implemented in kagome::consensus::babe::BabeConfigRepositoryImpl.


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