Kagome
Polkadot Runtime Engine in C++17
kagome::authorship::BlockBuilderFactory Class Referenceabstract

#include <block_builder_factory.hpp>

Inheritance diagram for kagome::authorship::BlockBuilderFactory:
Collaboration diagram for kagome::authorship::BlockBuilderFactory:

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
 

Detailed Description

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.

Constructor & Destructor Documentation

virtual kagome::authorship::BlockBuilderFactory::~BlockBuilderFactory ( )
virtualdefault

Member Function Documentation

virtual outcome::result<std::unique_ptr<BlockBuilder> > kagome::authorship::BlockBuilderFactory::make ( const primitives::BlockInfo parent_block,
primitives::Digest  inherent_digest 
) const
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.


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