Skip to content
Snippets Groups Projects
Commit b1009a54 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

crypto: compare public keys with longId

parent 33d73d5d
No related branches found
No related tags found
No related merge requests found
......@@ -93,7 +93,7 @@ struct OPENDHT_PUBLIC PublicKey
~PublicKey();
explicit operator bool() const { return pk; }
bool operator ==(const PublicKey& o) const {
return pk == o.pk || getId() == o.getId();
return pk == o.pk || getLongId() == o.getLongId();
}
bool operator !=(const PublicKey& o) const {
return !(*this == o);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment