Kagome
Polkadot Runtime Engine in C++17
|
#include <block_builder_factory.hpp>
Public Member Functions | |
virtual | ~BlockBuilderFactory ()=default |
virtual outcome::result< std::unique_ptr< BlockBuilder > > | make (const primitives::BlockInfo &parent_block, primitives::Digest inherent_digest) const =0 |
Creates new block builders. Each of them encapsulates the logic for creating a single block from provided block information
Definition at line 22 of file block_builder_factory.hpp.
|
virtualdefault |
|
pure virtual |
Prepares BlockBuilder for creating block on top of parent block and using provided digests. Also initialises the block created in BlockBuilder
Implemented in kagome::authorship::BlockBuilderFactoryImpl.