mirror of
https://github.com/jwinterm/wownero.git
synced 2026-12-04 12:24:01 +01:00
make connection_id a string in RPC
It's sent as JSON, so raw binary is not appropriate
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user