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

@@ -512,7 +512,9 @@ Json::Value RPCHandler::accountFromString(Ledger::ref lrLedger, RippleAddress& n
}
else if (bStrict)
{
return rpcError(rpcACT_MALFORMED);
return naAccount.setAccountID(strIdent, ALPHABET_BITCOIN)
? rpcError(rpcACT_BITCOIN)
: rpcError(rpcACT_MALFORMED);
}
// Must be a seed.
else if (!naSeed.setSeedGeneric(strIdent))