mirror of
https://github.com/monero-project/monero.git
synced 2025-01-18 07:33:40 +02:00
p2p: remove dead protocol defs
This commit is contained in:
parent
941ecefab2
commit
d64d3bd530
@ -94,8 +94,6 @@ int main(int argc, char* argv[])
|
|||||||
SL(nodetool::anchor_peerlist_entry);
|
SL(nodetool::anchor_peerlist_entry);
|
||||||
SL(nodetool::node_server<cryptonote::t_cryptonote_protocol_handler<cryptonote::core>>);
|
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::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::network_config);
|
||||||
SL(nodetool::basic_node_data);
|
SL(nodetool::basic_node_data);
|
||||||
|
@ -57,17 +57,6 @@ namespace nodetool
|
|||||||
|
|
||||||
#pragma pack (push, 1)
|
#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>
|
template<typename AddressType>
|
||||||
struct peerlist_entry_base
|
struct peerlist_entry_base
|
||||||
{
|
{
|
||||||
@ -119,27 +108,6 @@ namespace nodetool
|
|||||||
};
|
};
|
||||||
typedef anchor_peerlist_entry_base<epee::net_utils::network_address> anchor_peerlist_entry;
|
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)
|
#pragma pack(pop)
|
||||||
|
|
||||||
inline
|
inline
|
||||||
|
Loading…
Reference in New Issue
Block a user