make connection_id a string in RPC

It's sent as JSON, so raw binary is not appropriate
This commit is contained in:
moneromooo-monero 2017-11-17 23:52:50 +00:00
parent dc6a8014bd
commit 310b790a64
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
4 changed files with 8 additions and 7 deletions

View file

@ -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;