changed return of wallet_accounts

This commit is contained in:
jed
2012-06-07 23:17:28 -07:00
parent 74518e77d0
commit ec9b304cb6
6 changed files with 12 additions and 8 deletions

View File

@@ -1501,7 +1501,7 @@ Json::Value RPCServer::doValidatorCreate(Json::Value& params) {
Json::Value RPCServer::accounts(const uint256& uLedger, const NewcoinAddress& naMasterGenerator)
{
Json::Value jsonAccounts(Json::objectValue);
Json::Value jsonAccounts(Json::arrayValue);
// YYY Don't want to leak to thin server that these accounts are related.
// YYY Would be best to alternate requests to servers and to cache results.
@@ -1519,7 +1519,7 @@ Json::Value RPCServer::accounts(const uint256& uLedger, const NewcoinAddress& na
as->addJson(jsonAccount);
jsonAccounts[naAccount.humanAccountID()] = jsonAccount;
jsonAccounts.append(jsonAccount);
}
else
{