Merge pull request #2300

42b34b35 Consistently print peer id in hex and on 16 chars (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2017-08-17 21:36:15 +02:00
commit 4859a00134
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
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;