changed some RPC returns

This commit is contained in:
jed
2012-06-11 14:01:16 -07:00
parent 88e977a22f
commit 79f57bc1da
5 changed files with 8 additions and 6 deletions

View File

@@ -1133,7 +1133,9 @@ Json::Value RPCServer::doPasswordSet(Json::Value& params)
Json::Value RPCServer::doPeers(Json::Value& params)
{
// peers
return theApp->getConnectionPool().getPeersJson();
Json::Value obj(Json::objectValue);
obj['peers']=theApp->getConnectionPool().getPeersJson();
return obj;
}
// send regular_seed paying_account account_id amount [currency] [send_max] [send_currency]