diff --git a/wallet/core/wallet_db.cpp b/wallet/core/wallet_db.cpp index 09aee0458..7ab7f1550 100644 --- a/wallet/core/wallet_db.cpp +++ b/wallet/core/wallet_db.cpp @@ -7404,6 +7404,11 @@ namespace beam::wallet return !(*this == other); } + bool WalletAddress::operator < (const WalletAddress& other) const + { + return m_BbsAddr < other.m_BbsAddr;//&& m_OwnID < other.m_OwnID; + } + bool WalletAddress::isExpired() const { return getTimestamp() > getExpirationTime(); diff --git a/wallet/core/wallet_db.h b/wallet/core/wallet_db.h index 58188888c..509cd7147 100644 --- a/wallet/core/wallet_db.h +++ b/wallet/core/wallet_db.h @@ -133,6 +133,7 @@ namespace beam::wallet bool operator == (const WalletAddress& other) const; bool operator != (const WalletAddress& other) const; + bool operator < (const WalletAddress& other) const; bool isExpired() const; bool isOwn() const; bool isPermanent() const;