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)