mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-01 00:15:51 +00:00
add 'isSet' to tell if a RippleAddress is non-empty.
This commit is contained in:
@@ -71,6 +71,11 @@ void RippleAddress::clear()
|
||||
vchData.clear();
|
||||
}
|
||||
|
||||
bool RippleAddress::isSet() const
|
||||
{
|
||||
return nVersion != VER_NONE;
|
||||
}
|
||||
|
||||
std::string RippleAddress::humanAddressType() const
|
||||
{
|
||||
switch (nVersion)
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user