aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol/cryptonote_protocol_handler.inl
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-16 10:56:55 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-16 10:56:55 +0100
commit42b34b35450ca73585ccbd7c13143f2b3cbf1b70 (patch)
tree91f58591885f429dc098fed36be2a86a75538db2 /src/cryptonote_protocol/cryptonote_protocol_handler.inl
parentMerge pull request #2286 (diff)
downloadmonero-42b34b35450ca73585ccbd7c13143f2b3cbf1b70.tar.xz
Consistently print peer id in hex and on 16 chars
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 5b3b059a4..4dd93bf6e 100644
--- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl
+++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
@@ -203,7 +203,7 @@ namespace cryptonote
}
std::stringstream peer_id_str;
- peer_id_str << std::hex << peer_id;
+ peer_id_str << std::hex << std::setw(16) << peer_id;
peer_id_str >> cnx.peer_id;
cnx.support_flags = support_flags;