mirror of
https://github.com/monero-project/monero.git
synced 2025-07-29 10:18:41 -04:00
Merge pull request #5595
2aa1134
daemon: display peer address type in print_cn (moneromooo-monero)
This commit is contained in:
commit
8774555d29
4 changed files with 21 additions and 0 deletions
|
@ -83,6 +83,8 @@ namespace cryptonote
|
|||
|
||||
uint32_t pruning_seed;
|
||||
|
||||
uint8_t address_type;
|
||||
|
||||
BEGIN_KV_SERIALIZE_MAP()
|
||||
KV_SERIALIZE(incoming)
|
||||
KV_SERIALIZE(localhost)
|
||||
|
@ -107,6 +109,7 @@ namespace cryptonote
|
|||
KV_SERIALIZE(connection_id)
|
||||
KV_SERIALIZE(height)
|
||||
KV_SERIALIZE(pruning_seed)
|
||||
KV_SERIALIZE(address_type)
|
||||
END_KV_SERIALIZE_MAP()
|
||||
};
|
||||
|
||||
|
|
|
@ -285,6 +285,7 @@ namespace cryptonote
|
|||
|
||||
cnx.height = cntxt.m_remote_blockchain_height;
|
||||
cnx.pruning_seed = cntxt.m_pruning_seed;
|
||||
cnx.address_type = (uint8_t)cntxt.m_remote_address.get_type_id();
|
||||
|
||||
connections.push_back(cnx);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue