mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 22:15:52 +00:00
Have RPC account_info recognize bitcoin addresses.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user