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