Consistently print peer id in hex and on 16 chars

This commit is contained in:
moneromooo-monero 2017-08-16 10:56:55 +01:00
parent 9e6bcbc014
commit 42b34b3545
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
2 changed files with 13 additions and 6 deletions

View file

@ -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;