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

#include <block_builder.hpp>

Inheritance diagram for kagome::runtime::BlockBuilder:
Collaboration diagram for kagome::runtime::BlockBuilder:

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::BlockHeaderfinalize_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::CheckInherentsResultcheck_inherents (const primitives::Block &block, const primitives::InherentData &data)=0
 
virtual outcome::result< common::Hash256random_seed (const primitives::BlockHash &block)=0
 

Detailed Description

Part of runtime API responsible for building a block for a runtime.

Definition at line 24 of file block_builder.hpp.

Constructor & Destructor Documentation

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

Member Function Documentation

virtual outcome::result<PersistentResult<primitives::ApplyExtrinsicResult> > kagome::runtime::BlockBuilder::apply_extrinsic ( const primitives::BlockInfo block,
storage::trie::RootHash const &  storage_hash,
const primitives::Extrinsic extrinsic 
)
pure virtual

Apply the given extrinsic.

Implemented in kagome::runtime::BlockBuilderImpl.

virtual outcome::result<primitives::CheckInherentsResult> kagome::runtime::BlockBuilder::check_inherents ( const primitives::Block block,
const primitives::InherentData data 
)
pure virtual

Check that the inherents are valid. The inherent data will vary from chain to chain.

Implemented in kagome::runtime::BlockBuilderImpl.

virtual outcome::result<primitives::BlockHeader> kagome::runtime::BlockBuilder::finalize_block ( const primitives::BlockInfo block,
storage::trie::RootHash const &  storage_hash 
)
pure virtual

Finish the current block.

Implemented in kagome::runtime::BlockBuilderImpl.

virtual outcome::result<std::vector<primitives::Extrinsic> > kagome::runtime::BlockBuilder::inherent_extrinsics ( const primitives::BlockInfo block,
storage::trie::RootHash const &  storage_hash,
const primitives::InherentData data 
)
pure virtual

Generate inherent extrinsics. The inherent data will vary from chain to chain.

Implemented in kagome::runtime::BlockBuilderImpl.

virtual outcome::result<common::Hash256> kagome::runtime::BlockBuilder::random_seed ( const primitives::BlockHash block)
pure virtual

Generate a random seed.

Implemented in kagome::runtime::BlockBuilderImpl.


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