TARAXA
ext_pillar_vote_packet_handler.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "packet_handler.hpp"
4 
5 namespace taraxa {
6 class KeyManager;
7 class PillarVote;
8 
9 namespace pillar_chain {
10 class PillarChainManager;
11 } // namespace pillar_chain
12 
13 namespace final_chain {
14 class FinalChain;
15 }
16 
17 } // namespace taraxa
18 
19 namespace taraxa::network::tarcap {
20 
22  public:
23  ExtPillarVotePacketHandler(const FullNodeConfig& conf, std::shared_ptr<PeersState> peers_state,
24  std::shared_ptr<TimePeriodPacketsStats> packets_stats,
25  std::shared_ptr<pillar_chain::PillarChainManager> pillar_chain_manager,
26  const addr_t& node_addr, const std::string& log_channel);
27 
28  protected:
29  bool processPillarVote(const std::shared_ptr<PillarVote>& vote, const std::shared_ptr<TaraxaPeer>& peer);
30 
31  protected:
32  std::shared_ptr<pillar_chain::PillarChainManager> pillar_chain_manager_;
33 };
34 
35 } // namespace taraxa::network::tarcap
Definition: FixedHash.h:35
Definition: ext_pillar_vote_packet_handler.hpp:21
ExtPillarVotePacketHandler(const FullNodeConfig &conf, std::shared_ptr< PeersState > peers_state, std::shared_ptr< TimePeriodPacketsStats > packets_stats, std::shared_ptr< pillar_chain::PillarChainManager > pillar_chain_manager, const addr_t &node_addr, const std::string &log_channel)
Definition: ext_bls_sig_packet_handler.cpp:6
bool processPillarVote(const std::shared_ptr< PillarVote > &vote, const std::shared_ptr< TaraxaPeer > &peer)
Definition: ext_bls_sig_packet_handler.cpp:14
std::shared_ptr< pillar_chain::PillarChainManager > pillar_chain_manager_
Definition: ext_pillar_vote_packet_handler.hpp:32
Packet handler base class that consists of shared state and some commonly used functions.
Definition: packet_handler.hpp:25
Definition: vote_manager.hpp:23
Definition: config.hpp:8
Definition: config.hpp:24