Kagome
Polkadot Runtime Engine in C++17
|
#include <block_builder_impl.hpp>
Public Member Functions | |
~BlockBuilderImpl () override=default | |
BlockBuilderImpl (primitives::BlockHeader block_header, const storage::trie::RootHash &storage_state, std::shared_ptr< runtime::BlockBuilder > block_builder_api) | |
outcome::result< std::vector< primitives::Extrinsic > > | getInherentExtrinsics (const primitives::InherentData &data) const override |
outcome::result< primitives::ExtrinsicIndex > | pushExtrinsic (const primitives::Extrinsic &extrinsic) override |
outcome::result< primitives::Block > | bake () const override |
size_t | estimateBlockSize () const override |
Public Member Functions inherited from kagome::authorship::BlockBuilder | |
virtual | ~BlockBuilder ()=default |
Private Member Functions | |
size_t | estimatedBlockHeaderSize () const |
Private Attributes | |
primitives::BlockHeader | block_header_ |
std::shared_ptr< runtime::BlockBuilder > | block_builder_api_ |
storage::trie::RootHash | storage_state_ |
log::Logger | logger_ |
std::vector< primitives::Extrinsic > | extrinsics_ {} |
Definition at line 19 of file block_builder_impl.hpp.
|
overridedefault |
kagome::authorship::BlockBuilderImpl::BlockBuilderImpl | ( | primitives::BlockHeader | block_header, |
const storage::trie::RootHash & | storage_state, | ||
std::shared_ptr< runtime::BlockBuilder > | block_builder_api | ||
) |
Definition at line 18 of file block_builder_impl.cpp.
|
overridevirtual |
Create a block from extrinsics and header
Implements kagome::authorship::BlockBuilder.
Definition at line 104 of file block_builder_impl.cpp.
|
overridevirtual |
Estimate size of encoded block representation
Implements kagome::authorship::BlockBuilder.
Definition at line 112 of file block_builder_impl.cpp.
|
private |
Definition at line 120 of file block_builder_impl.cpp.
|
overridevirtual |
Implements kagome::authorship::BlockBuilder.
Definition at line 30 of file block_builder_impl.cpp.
|
overridevirtual |
Push extrinsic to wait its inclusion to the block Returns result containing success if xt was pushed, error otherwise
Implements kagome::authorship::BlockBuilder.
Definition at line 38 of file block_builder_impl.cpp.
|
private |
Definition at line 41 of file block_builder_impl.hpp.
|
private |
Definition at line 40 of file block_builder_impl.hpp.
|
private |
Definition at line 45 of file block_builder_impl.hpp.
|
private |
Definition at line 43 of file block_builder_impl.hpp.
|
private |
Definition at line 42 of file block_builder_impl.hpp.