add 'isSet' to tell if a RippleAddress is non-empty.

This commit is contained in:
JoelKatz
2013-04-14 03:16:27 -07:00
parent 1058df99ea
commit f561acd4c8
2 changed files with 7 additions and 0 deletions

View File

@@ -71,6 +71,11 @@ void RippleAddress::clear()
vchData.clear();
}
bool RippleAddress::isSet() const
{
return nVersion != VER_NONE;
}
std::string RippleAddress::humanAddressType() const
{
switch (nVersion)

View File

@@ -27,7 +27,9 @@ public:
// For public and private key, checks if they are legal.
bool isValid() const;
void clear();
bool isSet() const;
std::string humanAddressType() const;