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

#include <block_builder.hpp>

Inheritance diagram for kagome::authorship::BlockBuilder:
Collaboration diagram for kagome::authorship::BlockBuilder:

Public Member Functions

virtual ~BlockBuilder ()=default
 
virtual outcome::result< std::vector< primitives::Extrinsic > > getInherentExtrinsics (const primitives::InherentData &data) const =0
 
virtual outcome::result< primitives::ExtrinsicIndexpushExtrinsic (const primitives::Extrinsic &extrinsic)=0
 
virtual outcome::result< primitives::Blockbake () const =0
 
virtual size_t estimateBlockSize () const =0
 

Detailed Description

BlockBuilder collects extrinsics and creates new block and then should be destroyed

Definition at line 19 of file block_builder.hpp.

Constructor & Destructor Documentation

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

Member Function Documentation

virtual outcome::result<primitives::Block> kagome::authorship::BlockBuilder::bake ( ) const
pure virtual

Create a block from extrinsics and header

Implemented in kagome::authorship::BlockBuilderImpl.

virtual size_t kagome::authorship::BlockBuilder::estimateBlockSize ( ) const
pure virtual

Estimate size of encoded block representation

Returns
size in bytes

Implemented in kagome::authorship::BlockBuilderImpl.

virtual outcome::result<std::vector<primitives::Extrinsic> > kagome::authorship::BlockBuilder::getInherentExtrinsics ( const primitives::InherentData data) const
pure virtual
virtual outcome::result<primitives::ExtrinsicIndex> kagome::authorship::BlockBuilder::pushExtrinsic ( const primitives::Extrinsic extrinsic)
pure virtual

Push extrinsic to wait its inclusion to the block Returns result containing success if xt was pushed, error otherwise

Implemented in kagome::authorship::BlockBuilderImpl.


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