Kagome
Polkadot Runtime Engine in C++17
|
#include <block_builder.hpp>
Public Member Functions | |
virtual | ~BlockBuilder ()=default |
virtual outcome::result< PersistentResult< primitives::ApplyExtrinsicResult > > | apply_extrinsic (const primitives::BlockInfo &block, storage::trie::RootHash const &storage_hash, const primitives::Extrinsic &extrinsic)=0 |
virtual outcome::result< primitives::BlockHeader > | finalize_block (const primitives::BlockInfo &block, storage::trie::RootHash const &storage_hash)=0 |
virtual outcome::result< std::vector< primitives::Extrinsic > > | inherent_extrinsics (const primitives::BlockInfo &block, storage::trie::RootHash const &storage_hash, const primitives::InherentData &data)=0 |
virtual outcome::result< primitives::CheckInherentsResult > | check_inherents (const primitives::Block &block, const primitives::InherentData &data)=0 |
virtual outcome::result< common::Hash256 > | random_seed (const primitives::BlockHash &block)=0 |
Part of runtime API responsible for building a block for a runtime.
Definition at line 24 of file block_builder.hpp.
|
virtualdefault |
|
pure virtual |
Apply the given extrinsic.
Implemented in kagome::runtime::BlockBuilderImpl.
|
pure virtual |
Check that the inherents are valid. The inherent data will vary from chain to chain.
Implemented in kagome::runtime::BlockBuilderImpl.
|
pure virtual |
Finish the current block.
Implemented in kagome::runtime::BlockBuilderImpl.
|
pure virtual |
Generate inherent extrinsics. The inherent data will vary from chain to chain.
Implemented in kagome::runtime::BlockBuilderImpl.
|
pure virtual |
Generate a random seed.
Implemented in kagome::runtime::BlockBuilderImpl.