mirror of
https://github.com/monero-project/monero.git
synced 2025-07-30 06:48:41 -04:00
make connection_id a string in RPC
It's sent as JSON, so raw binary is not appropriate
This commit is contained in:
parent
dc6a8014bd
commit
310b790a64
4 changed files with 8 additions and 7 deletions
|
@ -74,7 +74,7 @@ namespace cryptonote
|
|||
|
||||
uint32_t support_flags;
|
||||
|
||||
boost::uuids::uuid connection_id;
|
||||
std::string connection_id;
|
||||
|
||||
uint64_t height;
|
||||
|
||||
|
@ -98,7 +98,7 @@ namespace cryptonote
|
|||
KV_SERIALIZE(avg_upload)
|
||||
KV_SERIALIZE(current_upload)
|
||||
KV_SERIALIZE(support_flags)
|
||||
KV_SERIALIZE_VAL_POD_AS_BLOB(connection_id)
|
||||
KV_SERIALIZE(connection_id)
|
||||
KV_SERIALIZE(height)
|
||||
END_KV_SERIALIZE_MAP()
|
||||
};
|
||||
|
|
|
@ -244,7 +244,7 @@ namespace cryptonote
|
|||
cnx.current_download = cntxt.m_current_speed_down / 1024;
|
||||
cnx.current_upload = cntxt.m_current_speed_up / 1024;
|
||||
|
||||
cnx.connection_id = cntxt.m_connection_id;
|
||||
cnx.connection_id = epee::string_tools::pod_to_hex(cntxt.m_connection_id);
|
||||
|
||||
cnx.height = cntxt.m_remote_blockchain_height;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue