44 switch (packet_type) {
46 return "StatusPacket";
48 return "DagBlockPacket";
50 return "GetDagSyncPacket";
52 return "DagSyncPacket";
54 return "TransactionPacket";
58 return "GetNextVotesSyncPacket";
60 return "VotesBundlePacket";
62 return "GetPbftSyncPacket";
64 return "PbftSyncPacket";
66 return "PillarVotePacket";
68 return "GetPillarVotesBundlePacket";
70 return "PillarVotesBundlePacket";
Definition: vote_manager.hpp:23
std::string convertPacketTypeToString(SubprotocolPacketType packet_type)
Definition: packet_types.hpp:43
SubprotocolPacketType
SubprotocolPacketType is used in networking layer to differentiate packet types.
Definition: packet_types.hpp:12
@ GetPbftSyncPacket
Definition: packet_types.hpp:29
@ StatusPacket
Definition: packet_types.hpp:28
@ HighPriorityPackets
Definition: packet_types.hpp:14
@ GetDagSyncPacket
Definition: packet_types.hpp:31
@ DagBlockPacket
Definition: packet_types.hpp:21
@ PbftSyncPacket
Definition: packet_types.hpp:30
@ TransactionPacket
Definition: packet_types.hpp:24
@ GetNextVotesSyncPacket
Definition: packet_types.hpp:16
@ PacketCount
Definition: packet_types.hpp:36
@ DagSyncPacket
Definition: packet_types.hpp:23
@ MidPriorityPackets
Definition: packet_types.hpp:20
@ PillarVotesBundlePacket
Definition: packet_types.hpp:34
@ GetPillarVotesBundlePacket
Definition: packet_types.hpp:33
@ VotePacket
Definition: packet_types.hpp:15
@ VotesBundlePacket
Definition: packet_types.hpp:17
@ LowPriorityPackets
Definition: packet_types.hpp:27
@ PillarVotePacket
Definition: packet_types.hpp:32
std::string to_string(Json::Value const &json, bool no_indent=true)
Definition: jsoncpp.cpp:27