10 std::shared_ptr<TimePeriodPacketsStats> packets_stats, std::shared_ptr<PbftManager> pbft_mgr,
11 std::shared_ptr<PbftChain> pbft_chain, std::shared_ptr<VoteManager> vote_mgr,
12 std::shared_ptr<SlashingManager> slashing_manager,
const std::string& log_channel_name);
21 void onNewPbftVote(
const std::shared_ptr<PbftVote>& vote,
const std::shared_ptr<PbftBlock>& block,
22 bool rebroadcast =
false);
30 virtual void sendPbftVote(
const std::shared_ptr<TaraxaPeer>& peer,
const std::shared_ptr<PbftVote>& vote,
31 const std::shared_ptr<PbftBlock>& block);
40 void onNewPbftVotesBundle(
const std::vector<std::shared_ptr<PbftVote>>& votes,
bool rebroadcast =
false,
41 const std::optional<dev::p2p::NodeID>& exclude_node = {});
50 std::vector<std::shared_ptr<PbftVote>>&& votes);
void onNewPbftVote(const std::shared_ptr< PbftVote > &vote, const std::shared_ptr< PbftBlock > &block, bool rebroadcast=false)
Sends pbft vote to connected peers.
Definition vote_packet_handler.cpp:17
virtual void sendPbftVote(const std::shared_ptr< TaraxaPeer > &peer, const std::shared_ptr< PbftVote > &vote, const std::shared_ptr< PbftBlock > &block)
Sends pbft vote to specified peer.
Definition vote_packet_handler.cpp:62
virtual void sendPbftVotesBundle(const std::shared_ptr< TaraxaPeer > &peer, std::vector< std::shared_ptr< PbftVote > > &&votes)
Sends pbft votes bundle to specified peer.
Definition vote_packet_handler.cpp:88
void onNewPbftVotesBundle(const std::vector< std::shared_ptr< PbftVote > > &votes, bool rebroadcast=false, const std::optional< dev::p2p::NodeID > &exclude_node={})
Sends pbft votes bundle to connected peers.
Definition vote_packet_handler.cpp:38