Changes after review
This commit is contained in:
@@ -23,8 +23,13 @@ public:
|
||||
READWRITE(pk_enc);
|
||||
}
|
||||
|
||||
friend inline bool operator==(const PaymentAddress& a, const PaymentAddress& b) { return a.a_pk == b.a_pk && a.pk_enc == b.pk_enc; }
|
||||
friend inline bool operator<(const PaymentAddress& a, const PaymentAddress& b) { return a.a_pk < b.a_pk; }
|
||||
friend inline bool operator==(const PaymentAddress& a, const PaymentAddress& b) {
|
||||
return a.a_pk == b.a_pk && a.pk_enc == b.pk_enc;
|
||||
}
|
||||
friend inline bool operator<(const PaymentAddress& a, const PaymentAddress& b) {
|
||||
return (a.a_pk < b.a_pk ||
|
||||
(a.a_pk == b.a_pk && a.pk_enc < b.pk_enc));
|
||||
}
|
||||
};
|
||||
|
||||
class ViewingKey : public uint256 {
|
||||
|
||||
@@ -61,7 +61,6 @@ public:
|
||||
typedef boost::array<unsigned char, CLEN> Ciphertext;
|
||||
typedef boost::array<unsigned char, MLEN> Plaintext;
|
||||
|
||||
// Unused default constructor to make allocators happy
|
||||
NoteDecryption() { }
|
||||
NoteDecryption(uint256 sk_enc);
|
||||
|
||||
@@ -71,8 +70,13 @@ public:
|
||||
unsigned char nonce
|
||||
) const;
|
||||
|
||||
friend inline bool operator==(const NoteDecryption& a, const NoteDecryption& b) { return a.sk_enc == b.sk_enc && a.pk_enc == b.pk_enc; }
|
||||
friend inline bool operator<(const NoteDecryption& a, const NoteDecryption& b) { return a.pk_enc < b.pk_enc; }
|
||||
friend inline bool operator==(const NoteDecryption& a, const NoteDecryption& b) {
|
||||
return a.sk_enc == b.sk_enc && a.pk_enc == b.pk_enc;
|
||||
}
|
||||
friend inline bool operator<(const NoteDecryption& a, const NoteDecryption& b) {
|
||||
return (a.sk_enc < b.sk_enc ||
|
||||
(a.sk_enc == b.sk_enc && a.pk_enc < b.pk_enc));
|
||||
}
|
||||
};
|
||||
|
||||
uint256 random_uint256();
|
||||
|
||||
Reference in New Issue
Block a user