Kagome
Polkadot Runtime Engine in C++17
|
Keeps actual babe configuration. More...
#include <babe_config_repository.hpp>
Public Member Functions | |
virtual | ~BabeConfigRepository ()=default |
virtual BabeDuration | slotDuration () const =0 |
virtual EpochLength | epochLength () const =0 |
virtual std::shared_ptr< const primitives::BabeConfiguration > | config (const primitives::BlockInfo &parent_block, consensus::EpochNumber epoch_number)=0 |
Keeps actual babe configuration.
Definition at line 14 of file babe_config_repository.hpp.
|
virtualdefault |
|
pure virtual |
Returns actual babe configuration
Implemented in kagome::consensus::babe::BabeConfigRepositoryImpl.
|
pure virtual |
Returns epoch length in number of slot
Implemented in kagome::consensus::babe::BabeConfigRepositoryImpl.
|
pure virtual |
Returns duration of slot in milliseconds
Implemented in kagome::consensus::babe::BabeConfigRepositoryImpl.