50 std::unordered_map<SubprotocolPacketType, std::unordered_map<dev::p2p::NodeID, std::set<PacketData::PacketId>>>
Definition: packet_data.hpp:12
Definition: packets_blocking_mask.hpp:12
dev::RLP dagBlockFromDagPacket(const PacketData &packet_data) const
Definition: packets_blocking_mask.cpp:79
bool isDagBlockPacketBlockedByLevel(const PacketData &packet_data) const
Definition: packets_blocking_mask.cpp:161
void markPacketAsPeerOrderUnblocked(const PacketData &blocking_packet, SubprotocolPacketType packet_type_to_unblock)
Definition: packets_blocking_mask.cpp:46
void setDagBlockBeingProcessed(const PacketData &packet)
Definition: packets_blocking_mask.cpp:90
void markPacketAsHardUnblocked(const PacketData &blocking_packet, SubprotocolPacketType packet_type_to_unblock)
Definition: packets_blocking_mask.cpp:17
static constexpr size_t kRequiredDagPacketSizeV3
Definition: packets_blocking_mask.hpp:70
std::unordered_map< SubprotocolPacketType, std::unordered_map< dev::p2p::NodeID, std::set< PacketData::PacketId > > > peer_order_blocked_packet_types_
Definition: packets_blocking_mask.hpp:51
std::map< taraxa::sig_t, PacketData::PacketId > processing_dag_blocks_
Definition: packets_blocking_mask.hpp:68
void unsetDagBlockBeingProcessed(const PacketData &packet)
Definition: packets_blocking_mask.cpp:101
std::unordered_map< SubprotocolPacketType, std::unordered_set< PacketData::PacketId > > hard_blocked_packet_types_
Definition: packets_blocking_mask.hpp:43
std::map< taraxa::level_t, std::unordered_set< PacketData::PacketId > > processing_dag_levels_
Definition: packets_blocking_mask.hpp:63
static constexpr size_t kRequiredDagPacketSizeV2
Definition: packets_blocking_mask.hpp:72
bool isPacketBlocked(const PacketData &packet_data) const
Definition: packets_blocking_mask.cpp:202
bool isPacketHardBlocked(const PacketData &packet_data) const
Definition: packets_blocking_mask.cpp:151
void unsetDagBlockLevelBeingProcessed(const PacketData &packet)
Definition: packets_blocking_mask.cpp:129
static constexpr size_t kDagBlockPosV3
Definition: packets_blocking_mask.hpp:71
void setDagBlockLevelBeingProcessed(const PacketData &packet)
Definition: packets_blocking_mask.cpp:111
std::optional< taraxa::level_t > getSmallestDagLevelBeingProcessed() const
Definition: packets_blocking_mask.cpp:71
bool isPacketPeerOrderBlocked(const PacketData &packet_data) const
Definition: packets_blocking_mask.cpp:176
void markPacketAsHardBlocked(const PacketData &blocking_packet, SubprotocolPacketType packet_type_to_block)
Definition: packets_blocking_mask.cpp:7
void markPacketAsPeerOrderBlocked(const PacketData &blocking_packet, SubprotocolPacketType packet_type_to_block)
Definition: packets_blocking_mask.cpp:35
bool isDagBlockPacketBlockedBySameDagBlock(const PacketData &packet_data) const
Definition: packets_blocking_mask.cpp:156
Definition: node_stats.hpp:17
SubprotocolPacketType
SubprotocolPacketType is used in networking layer to differentiate packet types.
Definition: packet_types.hpp:12