Kagome
Polkadot Runtime Engine in C++17
|
#include <block_builder.hpp>
Public Member Functions | |
virtual | ~BlockBuilder ()=default |
virtual outcome::result< std::vector< primitives::Extrinsic > > | getInherentExtrinsics (const primitives::InherentData &data) const =0 |
virtual outcome::result< primitives::ExtrinsicIndex > | pushExtrinsic (const primitives::Extrinsic &extrinsic)=0 |
virtual outcome::result< primitives::Block > | bake () const =0 |
virtual size_t | estimateBlockSize () const =0 |
BlockBuilder collects extrinsics and creates new block and then should be destroyed
Definition at line 19 of file block_builder.hpp.
|
virtualdefault |
|
pure virtual |
Create a block from extrinsics and header
Implemented in kagome::authorship::BlockBuilderImpl.
|
pure virtual |
Estimate size of encoded block representation
Implemented in kagome::authorship::BlockBuilderImpl.
|
pure virtual |
Implemented in kagome::authorship::BlockBuilderImpl.
|
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.