Skip to content

Commit

Permalink
Merge pull request #9659
Browse files Browse the repository at this point in the history
d64d3bd p2p: remove dead protocol defs (jeffro256)
  • Loading branch information
tobtoht committed Jan 14, 2025
2 parents 06f0cd5 + d64d3bd commit 90e908f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
2 changes: 0 additions & 2 deletions src/debug_utilities/object_sizes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ int main(int argc, char* argv[])
SL(nodetool::anchor_peerlist_entry);
SL(nodetool::node_server<cryptonote::t_cryptonote_protocol_handler<cryptonote::core>>);
SL(nodetool::p2p_connection_context_t<cryptonote::t_cryptonote_protocol_handler<cryptonote::core>::connection_context>);
SL(nodetool::network_address_old);
SL(nodetool::peerlist_entry_base<nodetool::network_address_old>);

SL(nodetool::network_config);
SL(nodetool::basic_node_data);
Expand Down
32 changes: 0 additions & 32 deletions src/p2p/p2p_protocol_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,6 @@ namespace nodetool

#pragma pack (push, 1)

struct network_address_old
{
uint32_t ip;
uint32_t port;

BEGIN_KV_SERIALIZE_MAP()
KV_SERIALIZE(ip)
KV_SERIALIZE(port)
END_KV_SERIALIZE_MAP()
};

template<typename AddressType>
struct peerlist_entry_base
{
Expand Down Expand Up @@ -119,27 +108,6 @@ namespace nodetool
};
typedef anchor_peerlist_entry_base<epee::net_utils::network_address> anchor_peerlist_entry;

template<typename AddressType>
struct connection_entry_base
{
AddressType adr;
peerid_type id;
bool is_income;

BEGIN_KV_SERIALIZE_MAP()
KV_SERIALIZE(adr)
KV_SERIALIZE(id)
KV_SERIALIZE(is_income)
END_KV_SERIALIZE_MAP()

BEGIN_SERIALIZE()
FIELD(adr)
FIELD(id)
FIELD(is_income)
END_SERIALIZE()
};
typedef connection_entry_base<epee::net_utils::network_address> connection_entry;

#pragma pack(pop)

inline
Expand Down

0 comments on commit 90e908f

Please sign in to comment.