TARAXA
Loading...
Searching...
No Matches
get_pillar_votes_bundle_packet_handler.hpp
Go to the documentation of this file.
1#pragma once
2
6
8
10 public:
11 GetPillarVotesBundlePacketHandler(const FullNodeConfig& conf, std::shared_ptr<PeersState> peers_state,
12 std::shared_ptr<TimePeriodPacketsStats> packets_stats,
13 std::shared_ptr<pillar_chain::PillarChainManager> pillar_chain_manager,
14 const std::string& logs_prefix = "");
15
16 void requestPillarVotesBundle(PbftPeriod period, const blk_hash_t& pillar_block_hash,
17 const std::shared_ptr<TaraxaPeer>& peer) override;
18
19 // Packet type that is processed by this handler
21
22 private:
23 virtual void process(const threadpool::PacketData& packet_data, const std::shared_ptr<TaraxaPeer>& peer) override;
24
25 protected:
26 std::shared_ptr<pillar_chain::PillarChainManager> pillar_chain_manager_;
27};
28
29} // namespace taraxa::network::tarcap
Definition get_pillar_votes_bundle_packet_handler.hpp:9
void requestPillarVotesBundle(PbftPeriod period, const blk_hash_t &pillar_block_hash, const std::shared_ptr< TaraxaPeer > &peer) override
Definition get_pillar_votes_bundle_packet_handler.cpp:78
static constexpr SubprotocolPacketType kPacketType_
Definition get_pillar_votes_bundle_packet_handler.hpp:20
virtual void process(const threadpool::PacketData &packet_data, const std::shared_ptr< TaraxaPeer > &peer) override
Main packet processing function.
Definition get_pillar_votes_bundle_packet_handler.cpp:16
std::shared_ptr< pillar_chain::PillarChainManager > pillar_chain_manager_
Definition get_pillar_votes_bundle_packet_handler.hpp:26
Definition get_pillar_votes_bundle_packet_handler.hpp:7
Definition packet_data.hpp:12
Definition vote_manager.hpp:24
SubprotocolPacketType
SubprotocolPacketType is used in networking layer to differentiate packet types.
Definition packet_types.hpp:12
@ kGetPillarVotesBundlePacket
Definition packet_types.hpp:33
EthBlockNumber PbftPeriod
Definition types.hpp:25
Definition config.hpp:41