TARAXA
Loading...
Searching...
No Matches
pillar_vote_packet_handler.hpp
Go to the documentation of this file.
1#pragma once
2
4
6
8 public:
9 IPillarVotePacketHandler(const FullNodeConfig& conf, std::shared_ptr<PeersState> peers_state,
10 std::shared_ptr<TimePeriodPacketsStats> packets_stats,
11 std::shared_ptr<pillar_chain::PillarChainManager> pillar_chain_manager,
12 const addr_t& node_addr, const std::string& logs_prefix);
13
14 void onNewPillarVote(const std::shared_ptr<PillarVote>& vote, bool rebroadcast = false);
15 virtual void sendPillarVote(const std::shared_ptr<TaraxaPeer>& peer, const std::shared_ptr<PillarVote>& vote) = 0;
16};
17
18} // namespace taraxa::network::tarcap
Definition FixedHash.h:35
Definition ext_pillar_vote_packet_handler.hpp:8
Definition pillar_vote_packet_handler.hpp:7
void onNewPillarVote(const std::shared_ptr< PillarVote > &vote, bool rebroadcast=false)
Definition pillar_vote_packet_handler.cpp:13
virtual void sendPillarVote(const std::shared_ptr< TaraxaPeer > &peer, const std::shared_ptr< PillarVote > &vote)=0
Definition vote_manager.hpp:23
Definition config.hpp:40