6 #ifndef KAGOME_BABE_BLOCK_VALIDATOR_HPP 7 #define KAGOME_BABE_BLOCK_VALIDATOR_HPP 10 #include <unordered_map> 11 #include <unordered_set> 27 class Sr25519Provider;
49 std::shared_ptr<blockchain::BlockTree> block_tree,
50 std::shared_ptr<runtime::TaggedTransactionQueue> tx_queue,
51 std::shared_ptr<crypto::Hasher> hasher,
52 std::shared_ptr<crypto::VRFProvider> vrf_provider,
53 std::shared_ptr<crypto::Sr25519Provider> sr25519_provider);
60 SECONDARY_SLOT_ASSIGNMENTS_DISABLED
63 outcome::result<void> validateHeader(
99 const bool checkThreshold)
const;
102 std::shared_ptr<runtime::TaggedTransactionQueue>
tx_queue_;
108 std::unordered_set<primitives::AuthorityIndex>>
118 #endif // KAGOME_BABE_BLOCK_VALIDATOR_HPP
crypto::Sr25519PublicKey BabeSessionKey
std::shared_ptr< blockchain::BlockTree > block_tree_
std::shared_ptr< crypto::Sr25519Provider > sr25519_provider_
Configuration data used by the BABE consensus engine.
OUTCOME_HPP_DECLARE_ERROR(kagome::api, JRpcServerImpl::Error)
std::shared_ptr< runtime::TaggedTransactionQueue > tx_queue_
std::unordered_map< BabeSlotNumber, std::unordered_set< primitives::AuthorityIndex > > blocks_producers_
std::shared_ptr< soralog::Logger > Logger
uint64_t BabeSlotNumber
slot number of the Babe production
uint64_t EpochNumber
number of the epoch in the Babe production
crypto::VRFThreshold Threshold
threshold, which must not be exceeded for the party to be a slot leader
std::shared_ptr< crypto::Hasher > hasher_
std::shared_ptr< crypto::VRFProvider > vrf_provider_