mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add debugging support to NewcoinAddress.
This commit is contained in:
@@ -54,6 +54,23 @@ void NewcoinAddress::clear()
|
||||
vchData.clear();
|
||||
}
|
||||
|
||||
std::string NewcoinAddress::humanAddressType() const
|
||||
{
|
||||
switch (nVersion)
|
||||
{
|
||||
case VER_NONE: return "VER_NONE";
|
||||
case VER_NODE_PUBLIC: return "VER_NODE_PUBLIC";
|
||||
case VER_NODE_PRIVATE: return "VER_NODE_PRIVATE";
|
||||
case VER_ACCOUNT_ID: return "VER_ACCOUNT_ID";
|
||||
case VER_ACCOUNT_PUBLIC: return "VER_ACCOUNT_PUBLIC";
|
||||
case VER_ACCOUNT_PRIVATE: return "VER_ACCOUNT_PRIVATE";
|
||||
case VER_FAMILY_GENERATOR: return "VER_FAMILY_GENERATOR";
|
||||
case VER_FAMILY_SEED: return "VER_FAMILY_SEED";
|
||||
}
|
||||
|
||||
return "unknown";
|
||||
}
|
||||
|
||||
//
|
||||
// NodePublic
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user