diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-16 10:56:55 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-16 10:56:55 +0100 |
commit | 42b34b35450ca73585ccbd7c13143f2b3cbf1b70 (patch) | |
tree | 91f58591885f429dc098fed36be2a86a75538db2 /src/cryptonote_protocol | |
parent | Merge pull request #2286 (diff) | |
download | monero-42b34b35450ca73585ccbd7c13143f2b3cbf1b70.tar.xz |
Consistently print peer id in hex and on 16 chars
Diffstat (limited to 'src/cryptonote_protocol')
-rw-r--r-- | src/cryptonote_protocol/cryptonote_protocol_handler.inl | 2 |
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; |