aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol/cryptonote_protocol_handler.inl
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-08-17 21:36:15 +0200
committerRiccardo Spagni <ric@spagni.net>2017-08-17 21:36:15 +0200
commit4859a0013439e4c074ae4f38a4525aba9957c019 (patch)
tree139a03c51f3f8c79bfe1a9cd715ee558c6abb97b /src/cryptonote_protocol/cryptonote_protocol_handler.inl
parentMerge pull request #2291 (diff)
parentConsistently print peer id in hex and on 16 chars (diff)
downloadmonero-4859a0013439e4c074ae4f38a4525aba9957c019.tar.xz
Merge pull request #2300
42b34b35 Consistently print peer id in hex and on 16 chars (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_protocol/cryptonote_protocol_handler.inl')
-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 c78aae67e..2c1babcf8 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;