Kagome
Polkadot Runtime Engine in C++17
kagome::authorship::BlockBuilderFactoryImpl Class Reference

#include <block_builder_factory_impl.hpp>

Inheritance diagram for kagome::authorship::BlockBuilderFactoryImpl:
Collaboration diagram for kagome::authorship::BlockBuilderFactoryImpl:

Public Member Functions

 ~BlockBuilderFactoryImpl () override=default
 
 BlockBuilderFactoryImpl (std::shared_ptr< runtime::Core > r_core, std::shared_ptr< runtime::BlockBuilder > r_block_builder, std::shared_ptr< blockchain::BlockHeaderRepository > header_backend)
 
outcome::result< std::unique_ptr< BlockBuilder > > make (const kagome::primitives::BlockInfo &parent_block, primitives::Digest inherent_digest) const override
 
- Public Member Functions inherited from kagome::authorship::BlockBuilderFactory
virtual ~BlockBuilderFactory ()=default
 

Private Attributes

std::shared_ptr< runtime::Corer_core_
 
std::shared_ptr< runtime::BlockBuilderr_block_builder_
 
std::shared_ptr< blockchain::BlockHeaderRepositoryheader_backend_
 
log::Logger logger_
 

Detailed Description

Definition at line 16 of file block_builder_factory_impl.hpp.

Constructor & Destructor Documentation

kagome::authorship::BlockBuilderFactoryImpl::~BlockBuilderFactoryImpl ( )
overridedefault
kagome::authorship::BlockBuilderFactoryImpl::BlockBuilderFactoryImpl ( std::shared_ptr< runtime::Core r_core,
std::shared_ptr< runtime::BlockBuilder r_block_builder,
std::shared_ptr< blockchain::BlockHeaderRepository header_backend 
)

Definition at line 12 of file block_builder_factory_impl.cpp.

Member Function Documentation

outcome::result< std::unique_ptr< BlockBuilder > > kagome::authorship::BlockBuilderFactoryImpl::make ( const kagome::primitives::BlockInfo parent_block,
primitives::Digest  inherent_digest 
) const
overridevirtual

Prepares BlockBuilder for creating block on top of parent block and using provided digests. Also initialises the block created in BlockBuilder

Implements kagome::authorship::BlockBuilderFactory.

Definition at line 25 of file block_builder_factory_impl.cpp.

Member Data Documentation

std::shared_ptr<blockchain::BlockHeaderRepository> kagome::authorship::BlockBuilderFactoryImpl::header_backend_
private

Definition at line 32 of file block_builder_factory_impl.hpp.

log::Logger kagome::authorship::BlockBuilderFactoryImpl::logger_
private

Definition at line 33 of file block_builder_factory_impl.hpp.

std::shared_ptr<runtime::BlockBuilder> kagome::authorship::BlockBuilderFactoryImpl::r_block_builder_
private

Definition at line 31 of file block_builder_factory_impl.hpp.

std::shared_ptr<runtime::Core> kagome::authorship::BlockBuilderFactoryImpl::r_core_
private

Definition at line 30 of file block_builder_factory_impl.hpp.


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