aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol/cryptonote_protocol_handler.inl
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-11-17 23:52:50 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-11-18 00:13:07 +0000
commit310b790a64648b088badeb5cbedaddce7fe8c35b (patch)
tree6792ffa5f1768e2af3f01fb5f3d9f09fe3dad086 /src/cryptonote_protocol/cryptonote_protocol_handler.inl
parentMerge pull request #2818 (diff)
downloadmonero-310b790a64648b088badeb5cbedaddce7fe8c35b.tar.xz
make connection_id a string in RPC
It's sent as JSON, so raw binary is not appropriate
Diffstat (limited to '')
-rw-r--r--src/cryptonote_protocol/cryptonote_protocol_handler.inl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
index 73433a8d8..9ae24551c 100644
--- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl
+++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
@@ -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;