Kagome
Polkadot Runtime Engine in C++17
|
#include <block_builder.hpp>
Public Member Functions | |
BlockBuilderImpl (std::shared_ptr< Executor > executor) | |
outcome::result< PersistentResult< primitives::ApplyExtrinsicResult > > | apply_extrinsic (const primitives::BlockInfo &block, storage::trie::RootHash const &storage_hash, const primitives::Extrinsic &extrinsic) override |
outcome::result< primitives::BlockHeader > | finalize_block (const primitives::BlockInfo &block, storage::trie::RootHash const &storage_hash) override |
outcome::result< std::vector< primitives::Extrinsic > > | inherent_extrinsics (const primitives::BlockInfo &block, storage::trie::RootHash const &storage_hash, const primitives::InherentData &data) override |
outcome::result< primitives::CheckInherentsResult > | check_inherents (const primitives::Block &block, const primitives::InherentData &data) override |
outcome::result< common::Hash256 > | random_seed (const primitives::BlockHash &block) override |
Public Member Functions inherited from kagome::runtime::BlockBuilder | |
virtual | ~BlockBuilder ()=default |
Private Attributes | |
std::shared_ptr< Executor > | executor_ |
Definition at line 15 of file block_builder.hpp.
|
explicit |
Definition at line 12 of file block_builder.cpp.
|
overridevirtual |
Apply the given extrinsic.
Implements kagome::runtime::BlockBuilder.
Definition at line 18 of file block_builder.cpp.
|
overridevirtual |
Check that the inherents are valid. The inherent data will vary from chain to chain.
Implements kagome::runtime::BlockBuilder.
Definition at line 44 of file block_builder.cpp.
|
overridevirtual |
Finish the current block.
Implements kagome::runtime::BlockBuilder.
Definition at line 25 of file block_builder.cpp.
|
overridevirtual |
Generate inherent extrinsics. The inherent data will vary from chain to chain.
Implements kagome::runtime::BlockBuilder.
Definition at line 35 of file block_builder.cpp.
|
overridevirtual |
Generate a random seed.
Implements kagome::runtime::BlockBuilder.
Definition at line 50 of file block_builder.cpp.
|
private |
Definition at line 41 of file block_builder.hpp.