Kagome
Polkadot Runtime Engine in C++17
kagome::authorship::Proposer Class Referenceabstract

#include <proposer.hpp>

Inheritance diagram for kagome::authorship::Proposer:
Collaboration diagram for kagome::authorship::Proposer:

Public Member Functions

virtual ~Proposer ()=default
 
virtual outcome::result< primitives::Blockpropose (const primitives::BlockInfo &parent_block, const primitives::InherentData &inherent_data, const primitives::Digest &inherent_digest)=0
 

Detailed Description

Create block to further proposal for consensus

Definition at line 20 of file proposer.hpp.

Constructor & Destructor Documentation

virtual kagome::authorship::Proposer::~Proposer ( )
virtualdefault

Member Function Documentation

virtual outcome::result<primitives::Block> kagome::authorship::Proposer::propose ( const primitives::BlockInfo parent_block,
const primitives::InherentData inherent_data,
const primitives::Digest inherent_digest 
)
pure virtual

Creates block from provided parameters

Parameters
parent_blocknumber and hash of parent block
inherent_dataadditional data on block from unsigned extrinsics
inherent_digests- chain-specific block auxiliary data
Returns
proposed block or error

Implemented in kagome::authorship::ProposerImpl.


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