Have RPC account_info recognize bitcoin addresses.

This commit is contained in:
Arthur Britto
2013-04-22 19:32:02 -07:00
parent e2cef06756
commit 3d128c2852
8 changed files with 24 additions and 15 deletions

View File

@@ -328,7 +328,7 @@ std::string RippleAddress::humanAccountID() const
}
}
bool RippleAddress::setAccountID(const std::string& strAccountID)
bool RippleAddress::setAccountID(const std::string& strAccountID, const char* pAlphabet)
{
if (strAccountID.empty())
{
@@ -338,7 +338,7 @@ bool RippleAddress::setAccountID(const std::string& strAccountID)
}
else
{
mIsValid = SetString(strAccountID.c_str(), VER_ACCOUNT_ID);
mIsValid = SetString(strAccountID.c_str(), VER_ACCOUNT_ID, pAlphabet);
}
return mIsValid;