diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-08-17 21:36:15 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-08-17 21:36:15 +0200 |
commit | 4859a0013439e4c074ae4f38a4525aba9957c019 (patch) | |
tree | 139a03c51f3f8c79bfe1a9cd715ee558c6abb97b /src/cryptonote_protocol/cryptonote_protocol_handler.inl | |
parent | Merge pull request #2291 (diff) | |
parent | Consistently print peer id in hex and on 16 chars (diff) | |
download | monero-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.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 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; |