Kagome
Polkadot Runtime Engine in C++17
|
#include <block_builder_factory_impl.hpp>
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::Core > | r_core_ |
std::shared_ptr< runtime::BlockBuilder > | r_block_builder_ |
std::shared_ptr< blockchain::BlockHeaderRepository > | header_backend_ |
log::Logger | logger_ |
Definition at line 16 of file block_builder_factory_impl.hpp.
|
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.
|
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.
|
private |
Definition at line 32 of file block_builder_factory_impl.hpp.
|
private |
Definition at line 33 of file block_builder_factory_impl.hpp.
|
private |
Definition at line 31 of file block_builder_factory_impl.hpp.
|
private |
Definition at line 30 of file block_builder_factory_impl.hpp.