Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
anatolse committed Nov 24, 2024
1 parent 39fc93b commit fd952a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wallet/core/wallet_db.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions wallet/core/wallet_db.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fd952a4

Please sign in to comment.