TARAXA
Loading...
Searching...
No Matches
pillar_votes_bundle_packet_handler.hpp
Go to the documentation of this file.
1#pragma once
2
5
7
9 public:
10 PillarVotesBundlePacketHandler(const FullNodeConfig& conf, std::shared_ptr<PeersState> peers_state,
11 std::shared_ptr<TimePeriodPacketsStats> packets_stats,
12 std::shared_ptr<pillar_chain::PillarChainManager> pillar_chain_manager,
13 const std::string& logs_prefix = "");
14
15 // Packet type that is processed by this handler
17
18 constexpr static size_t kMaxPillarVotesInBundleRlp{250};
19
20 private:
21 virtual void process(const threadpool::PacketData& packet_data, const std::shared_ptr<TaraxaPeer>& peer) override;
22};
23
24} // namespace taraxa::network::tarcap
Definition ext_pillar_vote_packet_handler.hpp:8
Definition pillar_votes_bundle_packet_handler.hpp:8
static constexpr SubprotocolPacketType kPacketType_
Definition pillar_votes_bundle_packet_handler.hpp:16
virtual void process(const threadpool::PacketData &packet_data, const std::shared_ptr< TaraxaPeer > &peer) override
Main packet processing function.
Definition pillar_votes_bundle_packet_handler.cpp:14
static constexpr size_t kMaxPillarVotesInBundleRlp
Definition pillar_votes_bundle_packet_handler.hpp:18
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
@ kPillarVotesBundlePacket
Definition packet_types.hpp:34
Definition config.hpp:41