Kagome
Polkadot Runtime Engine in C++17
|
#include <proposer_impl.hpp>
Public Member Functions | |
~ProposerImpl () override=default | |
ProposerImpl (std::shared_ptr< BlockBuilderFactory > block_builder_factory, std::shared_ptr< transaction_pool::TransactionPool > transaction_pool, std::shared_ptr< primitives::events::ExtrinsicSubscriptionEngine > ext_sub_engine, std::shared_ptr< subscription::ExtrinsicEventKeyRepository > extrinsic_event_key_repo) | |
outcome::result< primitives::Block > | propose (const primitives::BlockInfo &parent_block, const primitives::InherentData &inherent_data, const primitives::Digest &inherent_digest) override |
Public Member Functions inherited from kagome::authorship::Proposer | |
virtual | ~Proposer ()=default |
Static Public Attributes | |
static constexpr auto | kMaxSkippedTransactions = 8 |
static constexpr size_t | kBlockSizeLimit = 4 * 1024 * 1024 + 512 |
Default block size limit in bytes. More... | |
Private Attributes | |
std::shared_ptr< BlockBuilderFactory > | block_builder_factory_ |
std::shared_ptr< transaction_pool::TransactionPool > | transaction_pool_ |
std::shared_ptr< primitives::events::ExtrinsicSubscriptionEngine > | ext_sub_engine_ |
std::shared_ptr< subscription::ExtrinsicEventKeyRepository > | extrinsic_event_key_repo_ |
metrics::RegistryPtr | metrics_registry_ = metrics::createRegistry() |
metrics::Gauge * | metric_tx_included_in_block_ |
log::Logger | logger_ = log::createLogger("Proposer", "authorship") |
Definition at line 20 of file proposer_impl.hpp.
|
overridedefault |
kagome::authorship::ProposerImpl::ProposerImpl | ( | std::shared_ptr< BlockBuilderFactory > | block_builder_factory, |
std::shared_ptr< transaction_pool::TransactionPool > | transaction_pool, | ||
std::shared_ptr< primitives::events::ExtrinsicSubscriptionEngine > | ext_sub_engine, | ||
std::shared_ptr< subscription::ExtrinsicEventKeyRepository > | extrinsic_event_key_repo | ||
) |
Definition at line 17 of file proposer_impl.cpp.
|
overridevirtual |
Creates block from provided parameters
parent_block | number and hash of parent block |
inherent_data | additional data on block from unsigned extrinsics |
inherent_digests | - chain-specific block auxiliary data |
Max varint size in bytes when encoded
Implements kagome::authorship::Proposer.
Definition at line 40 of file proposer_impl.cpp.
|
private |
Definition at line 45 of file proposer_impl.hpp.
|
private |
Definition at line 48 of file proposer_impl.hpp.
|
private |
Definition at line 50 of file proposer_impl.hpp.
|
static |
Default block size limit in bytes.
Definition at line 27 of file proposer_impl.hpp.
|
static |
Maximum transactions quantity to try to push into the block before finalization when resources are exhausted (block size limit reached)
Definition at line 24 of file proposer_impl.hpp.
|
private |
Definition at line 56 of file proposer_impl.hpp.
|
private |
Definition at line 54 of file proposer_impl.hpp.
|
private |
Definition at line 53 of file proposer_impl.hpp.
|
private |
Definition at line 46 of file proposer_impl.hpp.