TARAXA
Loading...
Searching...
No Matches
get_next_votes_bundle_packet_handler.hpp
Go to the documentation of this file.
1#pragma once
2
5
6namespace taraxa {
7class PbftManager;
8class VoteManager;
9} // namespace taraxa
10
12
14 public:
15 GetNextVotesBundlePacketHandler(const FullNodeConfig& conf, std::shared_ptr<PeersState> peers_state,
16 std::shared_ptr<TimePeriodPacketsStats> packets_stats,
17 std::shared_ptr<PbftManager> pbft_mgr, std::shared_ptr<PbftChain> pbft_chain,
18 std::shared_ptr<VoteManager> vote_mgr,
19 std::shared_ptr<SlashingManager> slashing_manager,
20 const std::string& logs_prefix = "");
21
22 // Packet type that is processed by this handler
24
25 private:
26 virtual void process(const threadpool::PacketData& packet_data, const std::shared_ptr<TaraxaPeer>& peer) override;
27};
28
29} // namespace taraxa::network::tarcap
Definition get_next_votes_bundle_packet_handler.hpp:13
virtual void process(const threadpool::PacketData &packet_data, const std::shared_ptr< TaraxaPeer > &peer) override
Main packet processing function.
Definition get_next_votes_bundle_packet_handler.cpp:17
static constexpr SubprotocolPacketType kPacketType_
Definition get_next_votes_bundle_packet_handler.hpp:23
Definition vote_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
@ kGetNextVotesSyncPacket
Definition packet_types.hpp:16
Definition app.hpp:16
Definition config.hpp:41